pub fn spawn(f: impl FnOnce() + Send + 'static)
Expand description

Version of std::thread::spawn that also works in WebAssembly.

See also [Thread::spawn].