UnixFDSourceFunc

typealias UnixFDSourceFunc = (fd: Int) -> Boolean

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

  • param fd the fd that triggered the event

  • return false if the source should be removed