Files
tokio/tokio/tests
Zahari Dichev d0ebb41547 sync: add Notify::notify_waiters (#3098)
This PR makes `Notify::notify_waiters` public. The method
already exists, but it changes the way `notify_waiters`,
is used. Previously in order for the consumer to
register interest, in a notification triggered by
`notify_waiters`, the `Notified` future had to be
polled. This introduced friction when using the api
as the future had to be pinned before polled.

This change introduces a counter that tracks how many
times `notified_waiters` has been called. Upon creation of
the future the number of times is loaded. When first
polled the future compares this number with the count
state of the `Notify` type. This avoids the need for
registering the waiter upfront.

Fixes: #3066
2020-11-16 12:49:35 -08:00
..
2020-04-02 17:10:44 -04:00
2020-05-21 12:49:36 +02:00
2020-10-20 17:42:32 +02:00
2020-10-12 12:41:40 -04:00
2020-10-12 12:41:40 -04:00
2020-01-14 15:12:08 -08:00
2019-12-17 22:32:12 -08:00
2020-09-11 15:14:45 -07:00
2020-05-30 14:06:03 -07:00
2020-10-22 09:58:00 -07:00