pub trait SpawnLocalExt: Runtime {
    // Required method
    fn spawn_local<F>(fut: F) -> Self::JoinHandle
       where F: Future<Output = ()> + 'static;
}
Expand description

Extension trait for async/await runtimes that support spawning local tasks

Required Methods§

source

fn spawn_local<F>(fut: F) -> Self::JoinHandlewhere F: Future<Output = ()> + 'static,

Spawn a !Send future onto this runtime’s event loop

Implementors§