mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
sync: add broadcast to list of channel types (#4712)
This commit is contained in:
+2
-1
@@ -114,7 +114,7 @@
|
|||||||
//! The [`tokio::sync`] module contains synchronization primitives to use when
|
//! The [`tokio::sync`] module contains synchronization primitives to use when
|
||||||
//! needing to communicate or share data. These include:
|
//! 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,
|
//! between tasks,
|
||||||
//! * a non-blocking [`Mutex`], for controlling access to a shared, mutable
|
//! * a non-blocking [`Mutex`], for controlling access to a shared, mutable
|
||||||
//! value,
|
//! value,
|
||||||
@@ -130,6 +130,7 @@
|
|||||||
//! [`oneshot`]: crate::sync::oneshot
|
//! [`oneshot`]: crate::sync::oneshot
|
||||||
//! [`mpsc`]: crate::sync::mpsc
|
//! [`mpsc`]: crate::sync::mpsc
|
||||||
//! [`watch`]: crate::sync::watch
|
//! [`watch`]: crate::sync::watch
|
||||||
|
//! [`broadcast`]: crate::sync::broadcast
|
||||||
//!
|
//!
|
||||||
//! The [`tokio::time`] module provides utilities for tracking time and
|
//! The [`tokio::time`] module provides utilities for tracking time and
|
||||||
//! scheduling work. This includes functions for setting [timeouts][timeout] for
|
//! scheduling work. This includes functions for setting [timeouts][timeout] for
|
||||||
|
|||||||
Reference in New Issue
Block a user