wait.rs 267 B

1234567891011121314151617
  1. pub trait Wait {
  2. fn new() -> Self
  3. where
  4. Self: Sized;
  5. fn has_waiting(&self) -> bool
  6. where
  7. Self: Sized;
  8. fn wait(&self, check: impl Fn() -> bool)
  9. where
  10. Self: Sized;
  11. fn notify(&self)
  12. where
  13. Self: Sized;
  14. }