pub fn spawn<F>(f: F) -> Spawn where
F: Future<Item = (), Error = ()> + Send + 'static,
Expand description
Spawns a future on the default executor.
This function will panic if the default executor is not set.
The Spawn
return type is not currently meant for anything other than
to reserve adding new trait implementations to it later. It can be
ignored for now.