Trait pollster::FutureExt[][src]

pub trait FutureExt: Future {
    fn block_on(self) -> Self::Output
    where
        Self: Sized
, { ... } }

An extension trait that allows blocking on a future in suffix position.

Provided methods

fn block_on(self) -> Self::Output where
    Self: Sized
[src]

Block the thread until the future is ready.

Example

use pollster::FutureExt;
let my_fut = async {};
let result = my_fut.block_on();
Loading content...

Implementors

impl<F: Future> FutureExt for F[src]

Loading content...