pub fn channel_with_notifier<E>(
changed: ReadyNotifier,
) -> (Sender<E>, Receiver<E>)Expand description
Creates a byte stream that invalidates cached sender readiness.
Subscribe to changed in ntex_service::Service::bind before using the
stream. The same notifier may be supplied to successive streams when a
service’s active stream changes at runtime. Installing or removing that
active stream must also notify, since it changes the service’s readiness.
Watermark and terminal-state transitions notify before waking waiters, including when the receiver is dropped after a successful readiness check.