pub trait Scheduler {
// Required method
fn schedule_on_ui_thread(&mut self, f: Box<dyn FnOnce()>);
}
Expand description
An interface to schedule a function on a platform’s ui thread.
Required Methods§
Sourcefn schedule_on_ui_thread(&mut self, f: Box<dyn FnOnce()>)
fn schedule_on_ui_thread(&mut self, f: Box<dyn FnOnce()>)
Schedule the given function to be run on the ui thread in the future.