1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Tool for (a)synchronous implementation.

/// Notifier for waiting [`Queue`](crate::Queue) operations.
pub trait Notify {
    /// Wake waiting dequeue operation.
    fn notify_dequeue(&self);
    /// Wake waiting enqueue operation.
    fn notify_enqueue(&self);
}

impl Notify for () {
    #[inline]
    fn notify_dequeue(&self) {}
    #[inline]
    fn notify_enqueue(&self) {}
}