Function warp::spawn

source ·
pub fn spawn<F>(f: F) -> Spawnwhere
    F: 'static + Future<Item = (), Error = ()> + Send,
Expand description

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.