pal_async::local

Function block_on

Source
pub fn block_on<Fut>(fut: Fut) -> Fut::Output
where Fut: Future,
Expand description

Blocks the current thread until the given future completes.