Stabilize mpmc_channel - #158729
Conversation
|
r? @jhpratt rustbot has assigned @jhpratt. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
cf36d2e to
b4e2db4
Compare
| #[stable(feature = "mpmc_channel", since = "CURRENT_RUSTC_VERSION")] | ||
| impl<T> fmt::Display for SendTimeoutError<T> { | ||
| fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ||
| match *self { |
There was a problem hiding this comment.
SendTimeoutError::Disconnected renders as "sending on a disconnected channel", which is different from SendError and TrySendError::Disconnected (all of which are the same failure mode). Let's pick one of these messages and use it for all three types.
rust/library/std/src/sync/mpsc.rs
Lines 1168 to 1172 in e19d321
rust/library/std/src/sync/mpsc.rs
Lines 1190 to 1197 in e19d321
(Can be a separate PR or in this PR.)
tracking issue: #126840