Skip to main content

block_on

Function block_on 

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

Convenience wrapper that creates a Runtime and runs fut to completion.