pub fn spawn<T>( future: impl Future<Output = T> + 'static, ) -> Task<T, TaskMetadata> ⓘ
async
Spawns a new async task that can be controlled with the returned task handle.