Skip to content

Commit 3df88d6

Browse files
MajorBreakfastcramertj
authored andcommitted
Use cx.local_waker().wake()
1 parent b4b0d56 commit 3df88d6

File tree

1 file changed

+1
-1
lines changed
  • futures-util/src/stream/futures_unordered

1 file changed

+1
-1
lines changed

futures-util/src/stream/futures_unordered/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl<T> Stream for FuturesUnordered<T>
249249
// At this point, it may be worth yielding the thread &
250250
// spinning a few times... but for now, just yield using the
251251
// task system.
252-
cx.waker().wake();
252+
cx.local_waker().wake();
253253
return Poll::Pending;
254254
}
255255
Dequeue::Data(node) => node,

0 commit comments

Comments
 (0)