pub fn spawn<T, F>(f: F) -> JoinHandle<T> ⓘwhere
T: 'static,
F: Future<Output = T> + 'static,
Expand description
Spawns an asynchronous task that will run in the background.
pub fn spawn<T, F>(f: F) -> JoinHandle<T> ⓘwhere
T: 'static,
F: Future<Output = T> + 'static,
Spawns an asynchronous task that will run in the background.