Skip to main content

spawn

Function spawn 

Source
pub fn spawn<F: Future + Send + 'static>(
    priority: TaskPriority,
    fut: F,
) -> JoinHandle<F::Output> 
where <F as Future>::Output: Send + 'static,