Trait pyo3_asyncio::generic::Runtime[][src]

pub trait Runtime {
    type JoinError: JoinError + Send;
    type JoinHandle: Future<Output = Result<(), Self::JoinError>> + Send;
    fn spawn<F>(fut: F) -> Self::JoinHandle
    where
        F: Future<Output = ()> + Send + 'static
; }
Expand description

Generic Rust async/await runtime

Associated Types

The error returned by a JoinHandle after being awaited

A future that completes with the result of the spawned task

Required methods

Spawn a future onto this runtime’s event loop

Implementors