IOFunc

typealias IOFunc = (source: IOChannel) -> 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

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