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
; }

Generic Rust async/await runtime

Associated Types

type JoinError: JoinError + Send[src]

The error returned by a JoinHandle after being awaited

type JoinHandle: Future<Output = Result<(), Self::JoinError>> + Send[src]

A future that completes with the result of the spawned task

Loading content...

Required methods

fn spawn<F>(fut: F) -> Self::JoinHandle where
    F: Future<Output = ()> + Send + 'static, 
[src]

Spawn a future onto this runtime's event loop

Loading content...

Implementors

Loading content...