Skip to main content

spawn_detached

Function spawn_detached 

Source
pub fn spawn_detached(fut: impl Future<Output = ()> + Send + 'static) -> Stream
Expand description

Spawns a detached future bound to a fresh stream.

Uses a thread on native, the browser runtime on wasm; panics on no-std.