add caveat discussed in #74335

This commit is contained in:
Roland Kuhn 2022-05-04 10:58:23 +02:00 committed by GitHub
parent 2946f7aad1
commit 3d808d52de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
/// executors 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) {