Module notify

Module notify 

Source
Expand description

Lightweight single-waiter notification primitive

Optimized for SPSC (Single Producer Single Consumer) pattern where only one task waits at a time. Much lighter than tokio::sync::Notify.

轻量级单等待者通知原语

为 SPSC(单生产者单消费者)模式优化,其中每次只有一个任务等待。 比 tokio::sync::Notify 更轻量。

Structs§

Notified
Future returned by SingleWaiterNotify::notified()
SingleWaiterNotify
Lightweight single-waiter notifier optimized for SPSC pattern