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.
Block the thread until the future is ready.
use pollster::FutureExt as _; let my_fut = async {}; let result = my_fut.block_on();