Function dreadnought::block_on
source · pub fn block_on<F>(future: F) -> F::Outputwhere
F: Future,
Expand description
Executes a future to completion.
This runs the given future on the current thread, blocking until it is complete, and yielding its result.