pub fn block_on<F>(fut: F) -> <F as IntoFuture>::Outputwhere
F: IntoFuture,Expand description
Block the thread until the future is ready.
ยงExample
let my_fut = async {};
let result = pollster::block_on(my_fut);pub fn block_on<F>(fut: F) -> <F as IntoFuture>::Outputwhere
F: IntoFuture,Block the thread until the future is ready.
let my_fut = async {};
let result = pollster::block_on(my_fut);