pollster
pub fn block_on<F: Future>(fut: F) -> F::Output
Block the thread until the future is ready.
let my_fut = async {}; let result = pollster::block_on(my_fut);