[][src]Trait amadeus::FutureExt1

pub trait FutureExt1: Future {
    fn block(self) -> Self::Output { ... }
}

Extension trait to provide convenient block() method on futures.

Named FutureExt1 to avoid clashing with futures::future::FutureExt.

Provided methods

fn block(self) -> Self::Output

Convenience method over futures::executor::block_on(future).

Loading content...

Implementors

impl<T> FutureExt1 for T where
    T: Future + ?Sized
[src]

Loading content...