Function futures::executor::spawn [−][src]
pub fn spawn<F>(future: F) -> Spawn<F> where
F: Future<Output = ()> + 'static + Send,
Spawn a task onto the default executor.
This function returns a future that will spawn the given future as a task
onto the default executor. It does not provide any way to wait on task
completion or extract a value from the task. That can either be done through
a channel, or by using spawn_with_handle
.