Trait pollster::FutureExt [−][src]
An extension trait that allows blocking on a future in suffix position.
Provided methods
fn block_on(self) -> Self::Output where
Self: Sized,
[src]
Self: Sized,
Block the thread until the future is ready.
Example
use pollster::FutureExt; let my_fut = async {}; let result = my_fut.block_on();