pub fn spawn_local<F, S>(
future: F,
scheduler: S,
) -> (Runnable, AsyncTask<F::Output>)Available on crate features
async-task and std only.Expand description
Spawn a local (non-Send) future with a custom scheduler using async_task.
This is similar to spawn but works with futures that are not Send.
It uses async_task::spawn_local internally.
This function is only available when the std feature is enabled.