From f22ae9bd809282d622240e8711935c8e13fc3671 Mon Sep 17 00:00:00 2001 From: Frank McSherry Date: Wed, 17 Feb 2021 22:03:50 -0500 Subject: [PATCH] small change, and test ci --- timely/src/worker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/timely/src/worker.rs b/timely/src/worker.rs index a07b9e4e4..93e0fc3f6 100644 --- a/timely/src/worker.rs +++ b/timely/src/worker.rs @@ -415,8 +415,8 @@ impl Worker { /// worker.step_while(|| probe.less_than(&0)); /// }); /// ``` - pub fn step_whilebool>(&mut self, mut func: F) { - while func() { self.step(); } + pub fn step_whilebool>(&mut self, func: F) { + self.step_or_park_while(Some(Duration::from_secs(0)), func) } /// Calls `self.step_or_park(duration)` as long as `func` evaluates to true.