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
Implementors
impl Spawner for ThreadSpawner
impl Spawner for ThreadPool