Crates.io | tokio-condvar |
lib.rs | tokio-condvar |
version | 0.3.0 |
source | src |
created_at | 2023-02-18 17:52:14.261202 |
updated_at | 2024-06-03 22:03:41.220333 |
description | A Condition Variable for Tokio Applications |
homepage | |
repository | https://github.com/kaimast/tokio-condvar |
max_upload_size | |
id | 788359 |
size | 12,813 |
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).