Function libp2p_rs::runtime::task::block_on[][src]

pub fn block_on<F, T>(future: F) -> T where
    F: Future<Output = T>, 

Spawns a runtime and blocks the current thread on its result.