IOFunc

typealias IOFunc = (source: IOChannel, condition: IOCondition) -> Boolean

Specifies the type of function passed to g_io_add_watch() or g_io_add_watch_full(), which is called when the requested condition on a #GIOChannel is satisfied.

  • param source the #GIOChannel event source

  • param condition the condition which has been satisfied

  • return the function should return false if the event source should be removed