From 9f4959580f0f7fc1220efa789f90ea0e89c28e6d Mon Sep 17 00:00:00 2001 From: Rafael Bachmann Date: Sun, 22 May 2022 18:46:34 +0200 Subject: [PATCH] sync: add broadcast to list of channel types (#4712) --- tokio/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tokio/src/lib.rs b/tokio/src/lib.rs index 27d4dc83855..c0d7e6252e4 100644 --- a/tokio/src/lib.rs +++ b/tokio/src/lib.rs @@ -114,7 +114,7 @@ //! The [`tokio::sync`] module contains synchronization primitives to use when //! needing to communicate or share data. These include: //! -//! * channels ([`oneshot`], [`mpsc`], and [`watch`]), for sending values +//! * channels ([`oneshot`], [`mpsc`], [`watch`], and [`broadcast`]), for sending values //! between tasks, //! * a non-blocking [`Mutex`], for controlling access to a shared, mutable //! value, @@ -130,6 +130,7 @@ //! [`oneshot`]: crate::sync::oneshot //! [`mpsc`]: crate::sync::mpsc //! [`watch`]: crate::sync::watch +//! [`broadcast`]: crate::sync::broadcast //! //! The [`tokio::time`] module provides utilities for tracking time and //! scheduling work. This includes functions for setting [timeouts][timeout] for