dispatchIo

fnbool dispatchIo(Slot, DispatchFn, RemoveFn, ErrorFn)( Token token, IoReady ready, scope Slot[] slots, scope DispatchFn dispatchFn, scope RemoveFn removeFn, scope ErrorFn errorFn) @trusted nothrow

Dispatch an I/O watcher callback.

Validates the watcher is an enabled I/O watcher, invokes its callback, and handles pending removal.

Parameters

tokenToken of the watcher.
readyI/O readiness flags.
slotsWatcher slot array.
dispatchFnCallback: (ref Slot, Token, IoReady) => void.
removeFnCallback: (uint index) => void.
errorFnCallback: (Token, Exception) => void.

Returns

true if the callback was invoked.