pub trait BlockOn {
    fn block_on<F: Future>(&self, future: F) -> F::Output;
}
Expand description

Trait for a runtime that can block on a future.

Required Methods

Run future until it is ready, and return its output.

Implementors