Trait async_main::Spawn
source · pub trait Spawn: Clone {
fn spawn_local(&self, f: impl Future<Output = ()> + 'static);
fn spawn(&self, f: impl Future<Output = ()> + Send + 'static) { ... }
}Expand description
Implementation for spawning tasks on an executor.