Skip to content

Commit 78f10b2

Browse files
committed
Update comment
1 parent 8982476 commit 78f10b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crossbeam-utils/src/sync/parker.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,9 @@ impl Inner {
365365
m = match deadline {
366366
None => self.cvar.wait(m).unwrap(),
367367
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.
368+
// We could check for a timeout here, in the return value of wait_timeout,
369+
// but in the case that a timeout and an unpark arrive simultaneously, we
370+
// prefer to report the former.
370371
Some(duration) if duration > Duration::from_secs(0) => {
371372
self.cvar.wait_timeout(m, duration).unwrap().0
372373
}

0 commit comments

Comments
 (0)