mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
add caveat discussed in #74335
This commit is contained in:
parent
2946f7aad1
commit
3d808d52de
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user