Trait pyo3_asyncio::generic::SpawnLocalExt
source · 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§
sourcefn spawn_local<F>(fut: F) -> Self::JoinHandlewhere
F: Future<Output = ()> + 'static,
fn spawn_local<F>(fut: F) -> Self::JoinHandlewhere F: Future<Output = ()> + 'static,
Spawn a !Send future onto this runtime’s event loop