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

Spawn a thread to run function f.

Implementors