[][src]Trait threader::executor::Executor

pub trait Executor<F: Future> {
    fn spawn(&self, future: F);
}

A trait which includes a spawning method common to all future executors.

Required methods

fn spawn(&self, future: F)

Spawns a future on this executor. In general, this method should not fail or panic, but this is left up to whatever is implementing the trait.

Loading content...

Implementors

impl<F> Executor<F> for ThreadPool where
    F: Future<Output = ()> + Send + 'static, 
[src]

Loading content...