Trait pal_async::task::Schedule

source ·
pub trait Schedule: Send + Sync {
    // Required methods
    fn schedule(&self, runnable: Runnable);
    fn name(&self) -> Arc<str>;
}
Expand description

Trait for scheduling a task on an executor.

Required Methods§

source

fn schedule(&self, runnable: Runnable)

Schedules a task to run.

source

fn name(&self) -> Arc<str>

Gets the executor name.

Implementors§