pub trait Schedule: Send + Sync { // Required methods fn schedule(&self, runnable: Runnable); fn name(&self) -> Arc<str>; }
Trait for scheduling a task on an executor.
Schedules a task to run.
Gets the executor name.