TaskProvider

Trait TaskProvider 

Source
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§