conc-util 0.5.0

[no_std] utilities for concurrency and async
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[cfg(feature = "alloc")]
mod onceevent;
#[cfg(feature = "alloc")]
pub use onceevent::OnceEvent;

pub trait Event {
    type Wait<'a>: Future where Self: 'a;

    fn fire(&self);
    fn wait<'a>(&'a self) -> Self::Wait<'a>;
}