2 #![allow(unused_must_use)]
4 // ignore-emscripten no threads support
5 // ignore-sgx no thread sleep support
7 use std::sync::mpsc::{TryRecvError, channel};
11 let (tx, rx) = channel();
12 let t = thread::spawn(move||{
19 Err(TryRecvError::Empty) => {}
20 Err(TryRecvError::Disconnected) => unreachable!()