From 077ac6f8b38c328539b3dd7e7e6fc3737cf9dcd4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 21 Jan 2020 10:37:16 +0100 Subject: [PATCH] runtime: actually park on Pending... Signed-off-by: Wolfgang Bumiller --- src/tools/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), } } }