Skip to main content

schedule_callback

Function schedule_callback 

Source
pub fn schedule_callback(f: Box<dyn FnOnce()>)
Expand description

Schedule a closure to run at the start of the next executor flush.

Used internally by auralis_signal to defer subscriber callback execution. The closure is drained before the main poll loop.

Routes to the current executor (via with_executor) when one is active; falls back to the global thread-local executor.