Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ impl<'a, T> Selector<'a, T> {
/// `eventual-fairness` feature flag is enabled, this method is fair and will handle a random event of those that
/// are ready.
pub fn wait_timeout(self, dur: Duration) -> Result<T, SelectError> {
self.wait_inner(Some(Instant::now() + dur))
self.wait_inner(Instant::now().checked_add(dur))
.ok_or(SelectError::Timeout)
}

Expand Down