pub trait Executor {
// Required methods
fn schedule(&mut self, item: WorkItem);
fn wait_job_completion(&mut self);
}Expand description
Schedules work items and provides a completion barrier.
Required Methods§
Sourcefn wait_job_completion(&mut self)
fn wait_job_completion(&mut self)
Waits until all previously scheduled work has finished.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".