diff --git a/futures-util/src/async_await/pending.rs b/futures-util/src/async_await/pending.rs index 5d7a43181..daa18e6c1 100644 --- a/futures-util/src/async_await/pending.rs +++ b/futures-util/src/async_await/pending.rs @@ -32,11 +32,12 @@ pub struct PendingOnce { impl Future for PendingOnce { type Output = (); - fn poll(mut self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll { + fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { if self.is_ready { Poll::Ready(()) } else { self.is_ready = true; + cx.waker().wake_by_ref(); Poll::Pending } }