Function mz_ore::task::spawn

source ·
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 async only.
Expand description

Spawns a new asynchronous task with a name.

See tokio::task::spawn and the module docs for more information.