Function spawn

Source
pub fn spawn<Fut: Future<Output = ()> + 'static>(
    future: Fut,
) -> Result<(), SpawnError>
Expand description

Spawns a new local future that will be polled at next tick or a new event comming