3 releases (breaking)
0.3.0 | Jun 3, 2024 |
---|---|
0.2.0 | Jun 3, 2024 |
0.1.0 | Feb 18, 2023 |
#393 in Concurrency
603 downloads per month
Used in 5 crates
(4 directly)
9KB
144 lines
A Condition Variable for Tokio
Not Cancellation-Safe: If your future gets canceled while inside wait, no other future may get woken up.
Spurious Wakeups Possible: Like any condition variable, there can be spurious wakeups, so always re-check the condition after waking up.
Note that, because this crate uses tokio
's Notify
internally and its semantics are slightly different than those of condition variables, spurious wake ups are even more likely.
This is not part of the Tokio project: See the discussion here on why Tokio does not have a built-in Condvar implementation (yet).
Dependencies
~2.3–8MB
~67K SLoC