mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
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:
@@ -6,6 +6,8 @@
|
||||
//!
|
||||
//! This crate provides primitives for synchronizing asynchronous tasks.
|
||||
|
||||
extern crate fnv;
|
||||
#[macro_use]
|
||||
extern crate futures;
|
||||
|
||||
macro_rules! debug {
|
||||
@@ -27,3 +29,4 @@ pub mod mpsc;
|
||||
pub mod oneshot;
|
||||
pub mod semaphore;
|
||||
pub mod task;
|
||||
pub mod watch;
|
||||
|
||||
Reference in New Issue
Block a user