pub fn spawn(
fut: impl Future<Output = ()> + Send + 'static,
) -> Result<(), SpawnError>Expand description
Run fut on the installed spawner, or on the default executor.
§Errors
Returns SpawnError when the spawner panics (the future is dropped),
when the default executor can’t start, or (on wasm32) when the future
is still pending once nothing wakes it.