pub fn spawn<T: Send + 'static>(
future: impl Future<Output = T> + Send + 'static,
) -> Task<T> ⓘAvailable on non-
target_os=unknown only.Expand description
Runs future on the threads of the engine.
The task is cancelled when the returned Task is dropped, unless it is detached.