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 8982476 commit 78f10b2Copy full SHA for 78f10b2
crossbeam-utils/src/sync/parker.rs
@@ -365,8 +365,9 @@ impl Inner {
365
m = match deadline {
366
None => self.cvar.wait(m).unwrap(),
367
Some(deadline) => match deadline.checked_duration_since(Instant::now()) {
368
- // We could check for a timeout here, but in the case that a timeout and an
369
- // unpark arrive simultaneously, we prefer to report the former.
+ // We could check for a timeout here, in the return value of wait_timeout,
+ // but in the case that a timeout and an unpark arrive simultaneously, we
370
+ // prefer to report the former.
371
Some(duration) if duration > Duration::from_secs(0) => {
372
self.cvar.wait_timeout(m, duration).unwrap().0
373
}
0 commit comments