pub fn channel() -> (TicketNotifier, TicketReceiver)
Expand description
Produce a new channel consisting of a sender and receiver.
The notifier is to be used by the ratelimiter while the receiver is to be provided to the consumer.
Refer to the module-level documentation for more information.