We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 829a149 commit 97e8bdbCopy full SHA for 97e8bdb
README.md
@@ -35,8 +35,9 @@ let consumer = std::thread::spawn(move || {
35
assert!(*latest == 42 || *latest == 0);
36
});
37
38
-# producer.join().unwrap();
39
-# consumer.join().unwrap();
+// Wait for both threads to be done
+producer.join().unwrap();
40
+consumer.join().unwrap();
41
```
42
43
In situations where moving the original value away and being unable to
0 commit comments