Skip to content

Commit 31315b9

Browse files
authored
doc: remove reference to the Sink trait in the MPSC documentation (tokio-rs#2476)
The implementation of the Sink trait was removed in 8a7e577. Fixes: tokio-rs#2464 Refs: tokio-rs#2389
1 parent 20b5df9 commit 31315b9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tokio/src/sync/mpsc/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
//! Similar to `std`, channel creation provides [`Receiver`] and [`Sender`]
77
//! handles. [`Receiver`] implements `Stream` and allows a task to read values
88
//! out of the channel. If there is no message to read, the current task will be
9-
//! notified when a new value is sent. [`Sender`] implements the `Sink` trait
10-
//! and allows sending messages into the channel. If the channel is at capacity,
11-
//! the send is rejected and the task will be notified when additional capacity
12-
//! is available. In other words, the channel provides backpressure.
9+
//! notified when a new value is sent. If the channel is at capacity, the send
10+
//! is rejected and the task will be notified when additional capacity is
11+
//! available. In other words, the channel provides backpressure.
1312
//!
1413
//! Unbounded channels are also available using the `unbounded_channel`
1514
//! constructor.

0 commit comments

Comments
 (0)