Function hyena::block_on

source ·
pub fn block_on<T>(future: impl Future<Output = T>) -> T
Expand description

Blocks the current thread until the future completes.

This function is just a wrapper around futures_lite::future::block_on.