We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 364da3d commit 1dc187aCopy full SHA for 1dc187a
1 file changed
tests/test.rs
@@ -20,23 +20,23 @@ fn test_basic() {
20
let (s2, r2) = mpsc::channel();
21
22
let pool1 = pool.clone();
23
- let t1 = thread::scoped(move || {
+ let t1 = thread::spawn(move || {
24
let conn = pool1.get().unwrap();
25
s1.send(()).unwrap();
26
r2.recv().unwrap();
27
drop(conn);
28
});
29
30
let pool2 = pool.clone();
31
- let t2 = thread::scoped(move || {
+ let t2 = thread::spawn(move || {
32
let conn = pool2.get().unwrap();
33
s2.send(()).unwrap();
34
r1.recv().unwrap();
35
36
37
38
- t1.join();
39
- t2.join();
+ t1.join().unwrap();
+ t2.join().unwrap();
40
41
pool.get().unwrap();
42
}
0 commit comments