block_on

Function block_on 

Source
pub fn block_on<T: 'static, F: Future<Output = T> + 'static>(task: F) -> T
Expand description

Emulates tokio’s block_on call

This will spawn a new tokio runtime on the current thread