Trait linera_sdk::util::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,

§

type Output = <AnyFuture as Future>::Output