true if the callback was invoked.dispatchWatcher
fn
bool dispatchWatcher(Slot, DispatchFn, RemoveFn, ErrorFn)(
Token token,
scope Slot[] slots,
scope DispatchFn dispatchFn,
scope RemoveFn removeFn,
scope ErrorFn errorFn) @trusted nothrowDispatch a generic (non-I/O) watcher callback.
Validates the watcher is enabled, invokes its callback, and handles pending removal.
Parameters
token | Token of the watcher. |
slots | Watcher slot array. |
dispatchFn | Callback: (ref Slot, Token) => void. |
removeFn | Callback: (uint index) => void. |
errorFn | Callback: (Token, Exception) => void. |