kona_common

Function block_on

Source
pub fn block_on<T>(f: impl Future<Output = T>) -> T
Expand description

This function busy waits on a future until it is ready. It uses a no-op waker to poll the future in a thread-blocking loop.