SourceFuncsCheckFunc

typealias SourceFuncsCheckFunc = (source: Source) -> Boolean

Checks if the source is ready to be dispatched.

Called after all the file descriptors are polled. The source should return true if it is ready to be dispatched. Note that some time may have passed since the previous prepare function was called, so the source should be checked again here.

Since 2.36 this may be NULL, in which case the effect is as if the function always returns FALSE.

  • param source The #GSource

  • return true if ready to be dispatched, false otherwise