mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
sync: update watch channel docs (#6395)
This commit is contained in:
@@ -278,7 +278,7 @@
|
||||
//!
|
||||
//! ## `watch` channel
|
||||
//!
|
||||
//! The [`watch` channel] supports sending **many** values from a **single**
|
||||
//! The [`watch` channel] supports sending **many** values from a **many**
|
||||
//! producer to **many** consumers. However, only the **most recent** value is
|
||||
//! stored in the channel. Consumers are notified when a new value is sent, but
|
||||
//! there is no guarantee that consumers will see **all** values.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#![cfg_attr(not(feature = "sync"), allow(dead_code, unreachable_pub))]
|
||||
|
||||
//! A single-producer, multi-consumer channel that only retains the *last* sent
|
||||
//! A multi-producer, multi-consumer channel that only retains the *last* sent
|
||||
//! value.
|
||||
//!
|
||||
//! This channel is useful for watching for changes to a value from multiple
|
||||
|
||||
Reference in New Issue
Block a user