Function await::examples::async::run_synchronously
[−]
[src]
pub fn run_synchronously<T, A: Await<T>>(a: A) -> T
Runs the Await
on the current thread and wont return until the result is ready.
This does not mean that the current thread will block or even yield.
Any blocking, pause/resume, or yielding will depend on the Await
task being
executed and the execution engine.