pub fn spawn<Fut>(future: Fut) -> Box<dyn Task<Fut::Output>>Expand description
Spawns a task on the global task runner.
If this actually spawns a task on a background task or just spawns a local task, depends on the TaskRunner type that is in use.
pub fn spawn<Fut>(future: Fut) -> Box<dyn Task<Fut::Output>>Spawns a task on the global task runner.
If this actually spawns a task on a background task or just spawns a local task, depends on the TaskRunner type that is in use.