sync: Add watch, a single value broadcast channel (#922)

A single-producer, multi-consumer channel that only retains the _last_ sent
value. Values are broadcasted out.

This channel is useful for watching for changes to a value from multiple
points in the code base (for example, changes to a configuration value).
This commit is contained in:
Carl Lerche
2019-02-22 21:54:50 -08:00
committed by GitHub
parent 7039f02bb2
commit 70f4fc481c
5 changed files with 645 additions and 1 deletions
+1
View File
@@ -19,6 +19,7 @@ Synchronization utilities.
categories = ["asynchronous"]
[dependencies]
fnv = "1.0.6"
futures = "0.1.19"
[dev-dependencies]