Skip to main content

dispatch_event

Function dispatch_event 

Source
pub(super) unsafe fn dispatch_event(token: Token, ready: Ready)
Expand description

Dispatches an event received from the poller to the corresponding ScheduledIo.

ยงSafety

token must have been obtained from ScheduledIo::token(), and that ScheduledIo must remain alive throughout this call. The I/O driver ensures that pending registrations are not freed until after event dispatch completes.