From 670e31e4af7a8a5b2d0d2d7bfebbdafa1128d137 Mon Sep 17 00:00:00 2001 From: Tyler Smith <74526874+tylertms@users.noreply.github.com> Date: Thu, 12 Nov 2026 10:47:34 -0500 Subject: [PATCH] fix(driver-base): run the wait hook between the steps block_on takes, as the waits it replaces did --- crates/stela-driver-base/src/stepped.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/stela-driver-base/src/stepped.rs b/crates/stela-driver-base/src/stepped.rs index c09455244f..ea770f58a7 100644 --- a/crates/stela-driver-base/src/stepped.rs +++ b/crates/stela-driver-base/src/stepped.rs @@ -52,13 +52,15 @@ pub fn poll_once(future: Pin<&mut F>) -> Poll { } /// Run `future` to completion on this CPU, stepping it until it is ready; -/// the attach-time driver of the same work [`Stepped`] runs per poll. +/// the attach-time driver of the same work [`Stepped`] runs per poll. Each +/// pending step is a wait, so the [`crate::on_wait`] hook runs between steps. pub fn block_on(future: F) -> F::Output { let mut future = core::pin::pin!(future); loop { if let Poll::Ready(output) = poll_once(future.as_mut()) { return output; } + crate::waiting(); core::hint::spin_loop(); } }