This commit is contained in:
Carl Lerche 2023-06-14 09:39:24 -07:00
parent 46c4e87ab4
commit 814a3c5c93
No known key found for this signature in database
GPG Key ID: FC5ADF3A4B2E5977

View File

@ -412,8 +412,8 @@ async fn multi_gated() {
}
poll_fn(move |cx| {
gate.waker.register_by_ref(cx.waker());
if gate.count.load(SeqCst) < 2 {
gate.waker.register_by_ref(cx.waker());
Poll::Pending
} else {
Poll::Ready(())