pub fn spawn_detached_fut(fut: impl Future<Output = ()> + Send + 'static)
Expand description
Spawns a future to run detached. This will use a thread on native, or the browser runtime on WASM. The returned JoinOnDrop will join the thread when it is dropped.