Crate sorted_channel

Source
Expand description

Multi-producer, multi-consumer sorted channel.

Structs§

Receiver
The receiving-half of the sorted_channel type. This receiver can be cloned and sent to multiple threads. See Sender for an example.
RecvError
An error returned from Receiver::recv when there are no Senders left for the channel.
SendError
An error returned from Sender::send when there are no Receivers left for the channel.
Sender
The sending-half of the sorted_channel type. This sender can be cloned and sent to multiple threads.

Functions§

sorted_channel
Creates a new sorted channel returning the Sender/Receiver halves.