tokio watcher, but with async-friendly RwLock instead
Find a file
2024-08-31 11:26:03 +12:00
src Copied from tokio 1.40 and made standalone, swapped RwLock for parking_lot variant 2024-08-31 11:20:14 +12:00
.gitignore Copied from tokio 1.40 and made standalone, swapped RwLock for parking_lot variant 2024-08-31 11:20:14 +12:00
Cargo.toml LICENSE 2024-08-31 11:26:03 +12:00
LICENSE LICENSE 2024-08-31 11:26:03 +12:00
README.md README 2024-08-31 11:24:32 +12:00

Watcher

This is just a rip-off of tokio's tokio::sync::watch module but using parking-lot's RwLock with arc_lock and send_guard features so that it is Send and thus works across .await points without triggering rust nightmares.