Trait ntex_rt::Runtime[][src]

pub trait Runtime {
    fn spawn(&self, future: Pin<Box<dyn Future<Output = ()>>>);
fn block_on(&self, f: Pin<Box<dyn Future<Output = ()>>>); }

Required methods

Spawn a future onto the single-threaded runtime.

Runs the provided future, blocking the current thread until the future completes.

Implementors