Skip to main content

spawn

Function spawn 

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

Run future in the background: on tokio’s runtime on a host, on the browser’s event loop in a browser.