File tree 1 file changed +0
-28
lines changed
library/std/src/sync/mpsc 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -870,34 +870,6 @@ impl<T> Receiver<T> {
870
870
/// However, since channels are buffered, messages sent before the disconnect
871
871
/// will still be properly received.
872
872
///
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
- ///
901
873
/// # Examples
902
874
///
903
875
/// Successfully receiving value before encountering timeout:
You can’t perform that action at this time.
0 commit comments