Location
|
/// The sending-half of Rust's asynchronous [`channel`] type. This half can only be |
|
/// owned by one thread, but it can be cloned to send to other threads. |
|
/// |
|
/// Messages can be sent through this channel with [`send`]. |
Summary
Given that Sync is now implemented for Sender in #111087, the documentation for Sender should no longer mention that it's meant to be cloned. In my opinion, it's better to be consistent with the documentation for SyncSender, which has been Sync.
|
/// The sending-half of Rust's synchronous [`sync_channel`] type. |
|
/// |
|
/// Messages can be sent through this channel with [`send`] or [`try_send`]. |
Location
rust/library/std/src/sync/mpsc/mod.rs
Lines 306 to 309 in a07bc13
Summary
Given that
Syncis now implemented forSenderin #111087, the documentation forSendershould no longer mention that it's meant to be cloned. In my opinion, it's better to be consistent with the documentation forSyncSender, which has beenSync.rust/library/std/src/sync/mpsc/mod.rs
Lines 353 to 355 in a07bc13