[][src]Function hyper::rt::spawn

pub fn spawn<F>(f: F) -> Spawn where
    F: Future<Item = (), Error = ()> + Send + 'static, 

Spawns a future on the default executor.

Panics

This function will panic if the default executor is not set.

Note

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.