Skip to main content

block_on

Function block_on 

Source
pub fn block_on<T, F: Future<Output = T>>(f: F) -> T
Available on crate feature full and non-crate feature use_std only.
Expand description

Blocks the current thread until the future is ready, parking the thread where possible