Trait BlockingWait

Source
pub trait BlockingWait {
    type Output;

    // Required method
    fn blocking_wait(self) -> Self::Output;
}
Expand description

An extension trait to block on a Future until it completes.

Required Associated Types§

Source

type Output

The type returned by the Future.

Required Methods§

Source

fn blocking_wait(self) -> Self::Output

Waits for the Future to complete in a blocking manner.

Effectively polls the Future repeatedly until it returns Poll::Ready.

Implementors§

Source§

impl<AnyFuture> BlockingWait for AnyFuture
where AnyFuture: Future,

Source§

type Output = <AnyFuture as Future>::Output