Skip to main content

Module sender

Module sender 

Source
Expand description

A thin wrapper around mpsc::Sender<TargetMessage> that optionally notifies the handler’s tokio::select! loop when a message is sent.

When Handler::run() is used (the tokio-native path), the contained Notify wakes the event loop so it can drain target channels immediately. When the legacy impl Stream for Handler is used, the notify is None and the wrapper adds zero overhead.

Structs§

PageSender
Sender half for page → target communication.