3 // ignore-emscripten no threads support
4 // ignore-sgx no thread sleep support
7 use std::time::Duration;
10 let t1 = thread::spawn(|| {
11 let sleep = Duration::new(0,100_000);
14 thread::park_timeout(sleep);
18 let t2 = thread::spawn(|| {
19 let sleep = Duration::new(0,100_000);
22 thread::park_timeout(sleep);
26 t1.join().expect("Couldn't join thread 1");
27 t2.join().expect("Couldn't join thread 2");