Closed QuarticCat closed 1 year ago
Oh, I just found that the document says "if unpark
happens first, park` will return immediately". Sorry for bothering!
Oh, I just found that the document says "if unpark
happens first, park` will return immediately". Sorry for bothering!
Type of error
Minor technical mistake
Location of the error
https://github.com/m-ou-se/rust-atomics-and-locks/blob/d945e828bd08719a2d7cb6d758be4611bd90ba2b/src/ch5_channels/s6_blocking.rs
Description of the error
Consider this:
false
, but hasn't parked yet.true
, and tries to unpark the receiver.