Receiver for a stochastic MPMC channel. Create one using stochastic_channel()
. This receiver can be cheaply cloned, which will increase the receiver count. Dropping a receiver will decrease the receiver count.
Iterator over items sent in a channel. This will keep producing items until there are no more senders. The current thread will be blocked while waiting for an item or until there are no more senders. Not all items sent will be received by this iterator, as there may be other receivers.
Sender for a stochastic MPMC channel. Create one using stochastic_channel()
. This sender can be cheaply cloned, which will increase the sender count. Dropping a sender will decrease the sender count.
A queue which pops items at random uniformly. It cannot be iterated or peeked.