Trait avalanche::renderer::Scheduler [−][src]
pub trait Scheduler {
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
fn 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.