Skip to main content

spawn_named

Function spawn_named 

Source
pub fn spawn_named<F>(
    name: Option<&str>,
    future: F,
) -> JoinHandle<<F as Future>::Output> 
where F: Future + Send + 'static, <F as Future>::Output: Send + 'static,
Expand description

Spawn a (possibly) named task on the executor runtime