pub trait TaskProvider: 'static + Send + Sync {
    // Required method
    fn next_task(&self) -> Option<Box<dyn WorkUnit>>;
}
Expand description

Provides a group of work units that compose a task.

Required Methods§

source

fn next_task(&self) -> Option<Box<dyn WorkUnit>>

Gets the next task to execute.

Implementors§