pub fn spawn<Fut, Name, NameClosure>(
_nc: NameClosure,
future: Fut
) -> JoinHandle<Fut::Output> where
Name: AsRef<str>,
NameClosure: FnOnce() -> Name,
Fut: Future + Send + 'static,
Fut::Output: Send + 'static,
Available on crate feature
task
only.Expand description
Spawns a new asynchronous task with a name.
See tokio::task::spawn
and the module docs for more
information.