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
.
pub fn block_on<T>(future: impl Future<Output = T>) -> T
Blocks the current thread until the future
completes.
This function is just a wrapper around futures_lite::future::block_on
.