spawn

Function spawn 

Source
pub fn spawn<F>(future: F)
where F: Future<Output = ()> + 'static,
Expand description

Spawn an async task that works on both web and desktop