UnixFDSourceFunc

typealias UnixFDSourceFunc = (fd: Int, condition: IOCondition) -> Boolean

The type of functions to be called when a UNIX fd watch source triggers.

  • param fd the fd that triggered the event

  • param condition the IO conditions reported on @fd

  • return false if the source should be removed