pub trait Scheduler: Sync + Send {
// Required method
fn spawn_thread(&self) -> Box<dyn SchedulerThread + 'static>;
}Expand description
Coroutine Scheduler
Custom implementations of this trait allow users to change the order in which Coroutines are being scheduled.
Required Methods§
Sourcefn spawn_thread(&self) -> Box<dyn SchedulerThread + 'static>
fn spawn_thread(&self) -> Box<dyn SchedulerThread + 'static>
Spawn per-thread Scheduler