2 stable releases
1.1.0 | Jan 24, 2024 |
---|---|
1.0.0 | Jan 23, 2024 |
#207 in Concurrency
3,097 downloads per month
Used in 6 crates
(via gifski)
10KB
184 lines
Ordered channel
An MPSC blocking channel that returns messages in sorted sequential consecutive order (explicitly assigned to each message), regardless of the order they were sent in.
It's convenient for collecting order-sensitive results of parallel operations (fork-join iteration).
It's backed by a BinaryHeap
that's used only when necessary to reorder the messages.
Dependencies
~76KB