Skip to content

Commit

Permalink
Add a type parameter T to Event
Browse files Browse the repository at this point in the history
Sets up tagged events to use the Notification trait.
  • Loading branch information
notgull committed Apr 3, 2023
1 parent 266b60d commit e001c7a
Show file tree
Hide file tree
Showing 7 changed files with 596 additions and 335 deletions.
4 changes: 1 addition & 3 deletions examples/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ impl<T> Mutex<T> {
}
Some(mut l) => {
// Wait until a notification is received.
if !l.as_mut().wait_deadline(deadline) {
return None;
}
l.as_mut().wait_deadline(deadline)?;
}
}
}
Expand Down
Loading

0 comments on commit e001c7a

Please sign in to comment.