mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
sync: channel doc grammar change (#2624)
This commit is contained in:
parent
3db22e29d1
commit
a43ec11daf
@ -10,12 +10,12 @@
|
|||||||
//! is rejected and the task will be notified when additional capacity is
|
//! is rejected and the task will be notified when additional capacity is
|
||||||
//! available. In other words, the channel provides backpressure.
|
//! available. In other words, the channel provides backpressure.
|
||||||
//!
|
//!
|
||||||
//! This module provides two variants of the channel: A bounded and an unbounded
|
//! This module provides two variants of the channel: bounded and unbounded. The
|
||||||
//! variant. The bounded variant has a limit on the number of messages that the
|
//! bounded variant has a limit on the number of messages that the channel can
|
||||||
//! channel can store, and if this limit is reached, trying to send another
|
//! store, and if this limit is reached, trying to send another message will
|
||||||
//! message will sleep until a message is received from the channel. An unbounded
|
//! wait until a message is received from the channel. An unbounded channel has
|
||||||
//! channel has an infinite capacity, so the `send` method never does any kind of
|
//! an infinite capacity, so the `send` method never does any kind of sleeping.
|
||||||
//! sleeping. This makes the [`UnboundedSender`] usable from both synchronous and
|
//! This makes the [`UnboundedSender`] usable from both synchronous and
|
||||||
//! asynchronous code.
|
//! asynchronous code.
|
||||||
//!
|
//!
|
||||||
//! # Disconnection
|
//! # Disconnection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user