2 stable releases
1.1.0 | Jan 24, 2024 |
---|---|
1.0.0 | Jan 23, 2024 |
#527 in Concurrency
2,820 downloads per month
Used in 12 crates
(2 directly)
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