Skip to main content

spawn_with_attributes

Function spawn_with_attributes 

Source
pub fn spawn_with_attributes<T, F>(
    is_daemon: bool,
    name: Option<String>,
    fut: F,
) -> JoinHandle<T> 
where F: Future<Output = T> + Send + 'static, T: Message + 'static,
Expand description

Spawn a new async task that the executor will run to completion.