dispatchWatcher

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

Dispatch a generic (non-I/O) watcher callback.

Validates the watcher is enabled, invokes its callback, and handles pending removal.

Parameters

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

Returns

true if the callback was invoked.