spawn

Function spawn 

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

Spawn a future on a background GCD queue.

The future will be polled on one of the system’s global concurrent queues.