Skip to main content

ScheduleFlush

Trait ScheduleFlush 

Source
pub trait ScheduleFlush {
    // Required method
    fn schedule(&self, callback: Box<dyn FnOnce()>);
}
Expand description

Platform hook for scheduling a microtask callback.

Required Methods§

Source

fn schedule(&self, callback: Box<dyn FnOnce()>)

Request that callback runs at the next microtask boundary.

Implementors§