Function gain::task::spawn_local[][src]

pub fn spawn_local<F, T>(future: F) -> JoinHandle<T> where
    F: Future<Output = T> + 'static,
    T: Send + 'static, 
Expand description

Spawn a new local task.

// TODO: T shouldn't require Send trait.