block_on

Function block_on 

Source
pub fn block_on<F: Future>(fut: F) -> F::Output
Expand description

Await for future forever via thread token

Note that this is only viable for futures that doesn’t require IO runtime