Function spawn

Source
pub fn spawn<F, R>(fut: F) -> SpawnHandle<R> 
where F: Future<Output = R> + Send + Sync + 'static, R: Send + Sync + 'static,
Expand description

Spawn a future on the current runtime. Returns a new future that can be later awaited for it’s output. Task execution begins eagerly, without needing you to await it