Trait Scheduler

Source
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§

Source

fn spawn_thread(&self) -> Box<dyn SchedulerThread + 'static>

Spawn per-thread Scheduler

Implementors§