[−][src]Function futures_executor::block_on
pub fn block_on<F: Future>(f: F) -> F::Output
Run a future to completion on the current thread.
This function will block the caller until the given future has completed. The default spawner for the future is a thread-local executor.
Use a LocalPool
if you need finer-grained control over
spawned tasks.