]>
git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-59020.rs
3 // ignore-emscripten no threads support
6 use std
::time
::Duration
;
9 let t1
= thread
::spawn(|| {
10 let sleep
= Duration
::new(0,100_000);
13 thread
::park_timeout(sleep
);
17 let t2
= thread
::spawn(|| {
18 let sleep
= Duration
::new(0,100_000);
21 thread
::park_timeout(sleep
);
25 t1
.join().expect("Couldn't join thread 1");
26 t2
.join().expect("Couldn't join thread 2");