Skip to main content

spawn_task

Function spawn_task 

Source
pub fn spawn_task<F>(future: F) -> Task<F::Output>
where F: Future + MaybeSend + 'static, F::Output: MaybeSend + 'static,
Expand description

Run future in the background, as spawn does, keeping a handle to await or abort it.