syncbox

Trait Run

Source
pub trait Run<T: Task> {
    // Required method
    fn run(&self, task: T);
}

Required Methods§

Source

fn run(&self, task: T)

Runs the task on the underlying executor.

Implementors§

Source§

impl<T: Task + 'static> Run<T> for ScheduledThreadPool

Source§

impl<T: Task + 'static, Q: WorkQueue<T>> Run<T> for ThreadPool<T, Q>