Skip to main content

conc_util/
event.rs

1#[cfg(feature = "alloc")]
2mod onceevent;
3#[cfg(feature = "alloc")]
4pub use onceevent::OnceEvent;
5
6pub trait Event {
7    type Wait: Future;
8
9    fn fire(self);
10    fn wait(self) -> Self::Wait;
11}