diff --git a/macros/src/codegen/dispatchers.rs b/macros/src/codegen/dispatchers.rs index e6caa78196..1d1a4fb8af 100644 --- a/macros/src/codegen/dispatchers.rs +++ b/macros/src/codegen/dispatchers.rs @@ -164,12 +164,6 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec Vec bool { if let Some(future) = &mut self.task { unsafe { let waker = Waker::from_raw(RawWaker::new(wake as *const (), &WAKER_VTABLE)); @@ -75,10 +75,13 @@ pub mod executor { match future.poll(&mut cx) { Poll::Ready(_) => { self.task = None; + true // Only true if we finished now } - Poll::Pending => {} - }; + Poll::Pending => false, + } } + } else { + false } } }