Skip to main content

spawn

Function spawn 

Source
pub(crate) fn spawn(future: impl Future<Output = ()> + Send + 'static)
Expand description

Run future concurrently: on a worker thread on native, in the browser’s task queue on the web (where a thread cannot be blocked).