[−][src]Function gain::task::spawn_local
pub fn spawn_local<F, T>(future: F) -> JoinHandle<T> where
F: Future<Output = T> + 'static,
T: Send + 'static,
Spawn a new local task.
// TODO: T shouldn't require Send trait.
pub fn spawn_local<F, T>(future: F) -> JoinHandle<T> where
F: Future<Output = T> + 'static,
T: Send + 'static,
Spawn a new local task.
// TODO: T shouldn't require Send trait.