timely::scheduling

Trait Scheduler

Source
pub trait Scheduler {
    // Required method
    fn activations(&self) -> Rc<RefCell<Activations>>;

    // Provided methods
    fn activator_for(&self, path: Rc<[usize]>) -> Activator { ... }
    fn sync_activator_for(&self, path: Vec<usize>) -> SyncActivator { ... }
}
Expand description

Methods for types which schedule fibers.

Required Methods§

Source

fn activations(&self) -> Rc<RefCell<Activations>>

Provides a shared handle to the activation scheduler.

Provided Methods§

Source

fn activator_for(&self, path: Rc<[usize]>) -> Activator

Constructs an Activator tied to the specified operator address.

Source

fn sync_activator_for(&self, path: Vec<usize>) -> SyncActivator

Constructs a SyncActivator tied to the specified operator address.

Implementors§

Source§

impl<A: Allocate> Scheduler for Worker<A>

Source§

impl<G, T> Scheduler for Child<'_, G, T>