pub fn block_on<F, Fut, R>(f: F) -> RExpand description
Runs a future to completion on the current thread until it completes.
The future is provided a Handle to the runtime so that it may spawn additional tasks
to be executed concurrently.
pub fn block_on<F, Fut, R>(f: F) -> RRuns a future to completion on the current thread until it completes.
The future is provided a Handle to the runtime so that it may spawn additional tasks
to be executed concurrently.