tokio-condvar

Crates.iotokio-condvar
lib.rstokio-condvar
version0.3.0
sourcesrc
created_at2023-02-18 17:52:14.261202
updated_at2024-06-03 22:03:41.220333
descriptionA Condition Variable for Tokio Applications
homepage
repositoryhttps://github.com/kaimast/tokio-condvar
max_upload_size
id788359
size12,813
Kai Mast (kaimast)

documentation

README

A Condition Variable for Tokio

ci-badge license-badge crates-badge

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).

Commit count: 13

cargo fmt