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.
2 parents 829a149 + 97e8bdb commit cc0eeb7Copy full SHA for cc0eeb7
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