Function block_on

Source
pub fn block_on<F>(f: F) -> <F as Future>::Output
where F: Future,
Expand description

Block current thread until f is complete