Open joshtriplett opened 3 months ago
Yes, this would be a nice addition. It would probably be a separate crate.
There is async-watch
, which is based on tokio
's implementation and built on event-listener
. But it hasn't been updated for several years.
Poke @cynecx
I'd love to have an equivalent of the
tokio::sync::watch
types. These provide a channel that stores only the latest value sent. This is convenient for request coalescing: first one in creates the watch and spawns a task to do the request, subsequent requests wait on the existing watch.