diff --git a/src/tools/runtime.rs b/src/tools/runtime.rs index 4054a71c..a2e7cddf 100644 --- a/src/tools/runtime.rs +++ b/src/tools/runtime.rs @@ -135,7 +135,7 @@ fn block_on_local_future(mut fut: F) -> F::Output { loop { match fut.as_mut().poll(&mut context) { Poll::Ready(out) => return out, - Poll::Pending => continue, + Poll::Pending => thread::park(), } } }