pub trait TaskExecutor {
// Required methods
fn push(&mut self, task: AnyTask);
fn poll(&mut self, tasks: &[TaskData]) -> ExecutionPoll;
}Expand description
Required Methods§
Sourcefn poll(&mut self, tasks: &[TaskData]) -> ExecutionPoll
fn poll(&mut self, tasks: &[TaskData]) -> ExecutionPoll
Poll the executor to get it’s state.
tasksis a slice of the currently running tasks.
See ExecutionPoll for more information. And executors module for examples.