Trait promising_future::Spawner [] [src]

pub trait Spawner {
    fn spawn<F>(&self, f: F) where F: FnOnce() + Send + 'static;
}

A trait for spawning threads.

Required Methods

fn spawn<F>(&self, f: F) where F: FnOnce() + Send + 'static

Spawn a thread to run function f.

Implementors