Skip to content

Commit cb394c0

Browse files
committed
remove mention of rust-lang#39364 from mpsc docs
1 parent 8a68b40 commit cb394c0

File tree

1 file changed

+0
-28
lines changed
  • library/std/src/sync/mpsc

1 file changed

+0
-28
lines changed

library/std/src/sync/mpsc/mod.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -870,34 +870,6 @@ impl<T> Receiver<T> {
870870
/// However, since channels are buffered, messages sent before the disconnect
871871
/// will still be properly received.
872872
///
873-
/// # Known Issues
874-
///
875-
/// There is currently a known issue (see [`#39364`]) that causes `recv_timeout`
876-
/// to panic unexpectedly with the following example:
877-
///
878-
/// ```no_run
879-
/// use std::sync::mpsc::channel;
880-
/// use std::thread;
881-
/// use std::time::Duration;
882-
///
883-
/// let (tx, rx) = channel::<String>();
884-
///
885-
/// thread::spawn(move || {
886-
/// let d = Duration::from_millis(10);
887-
/// loop {
888-
/// println!("recv");
889-
/// let _r = rx.recv_timeout(d);
890-
/// }
891-
/// });
892-
///
893-
/// thread::sleep(Duration::from_millis(100));
894-
/// let _c1 = tx.clone();
895-
///
896-
/// thread::sleep(Duration::from_secs(1));
897-
/// ```
898-
///
899-
/// [`#39364`]: https://github.com/rust-lang/rust/issues/39364
900-
///
901873
/// # Examples
902874
///
903875
/// Successfully receiving value before encountering timeout:

0 commit comments

Comments
 (0)