Skip to content

Commit

Permalink
add caveat discussed in rust-lang#74335
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuhn authored May 4, 2022
1 parent 2946f7a commit 3d808d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/core/src/task/wake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ impl Waker {
///
/// Note that the above implies that multiple wake-ups may be coalesced into a
/// single `poll` invocation by the runtime.
///
/// Also note that yielding to competing tasks is not guaranteed: it is the
/// executor’s choice which task to run and the executor may choose to run the
/// current task again.
#[inline]
#[stable(feature = "futures_api", since = "1.36.0")]
pub fn wake(self) {
Expand Down

0 comments on commit 3d808d5

Please sign in to comment.