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

Generic executor.

Required Methods

Create the implementor itself.

Spawns a future object to run synchronously or asynchronously depending on the specific executor.

Implementations on Foreign Types

Implementors