dispatchOsEvent

fnbool dispatchOsEvent(Slot, DispatchIoFn)(OsEvent osEvent, scope Slot[] slots, scope DispatchIoFn dispatchIo) @trusted nothrow

Route an OS event to the appropriate watcher dispatch function.

Unpacks the token from the OS event user data and dispatches to the correct handler based on the watcher kind. Only I/O watchers are dispatched here; other kinds are returned as unhandled.

Parameters

osEventNative OS event from the backend poller.
slotsWatcher slot array.
dispatchIoCallback for I/O dispatch: (Token, IoReady) => bool.

Returns

true if the event was dispatched, false if unhandled or invalid.