Skip to main content

spawn

Function spawn 

Source
pub fn spawn(fut: impl Future<Output = ()> + 'static) -> JoinHandle ⓘ
Expand description

Runs fut in the background, starting this frame. Background tasks stop when the scene ends.