tiny-notify 0.5.0-rc.13

Executor-independent single-waiter and broadcast notification primitives
Documentation
use futures_lite::future::{
    block_on,
    zip,
};
use tiny_notify::{
    ArcNotify,
    BroadcastNotify,
    Notify,
};

fn main() {
    block_on(async {
        let notify = Notify::new();
        zip(notify.notified(), async { notify.notify() }).await;

        let notify = ArcNotify::new();
        notify.notify();
        notify.notified().await;

        let broadcast = BroadcastNotify::new();
        let first = broadcast.notified();
        let second = broadcast.notified();
        zip(zip(first, second), async { broadcast.notify() }).await;
    });
}