Trait task_pool::WorkUnit

source ·
pub trait WorkUnit {
    // Required method
    fn execute(self: Box<Self>);
}
Expand description

A single, atomic unit of work that one thread should process.

Required Methods§

source

fn execute(self: Box<Self>)

Executes this task on the current thread.

Implementors§

source§

impl<F: FnOnce()> WorkUnit for F