futures_executor

Function spawn

Source
pub fn spawn<F>(f: F) -> Spawn<F>
where F: Future<Item = (), Error = Never> + 'static + Send,
Expand description

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.