Crates.io | ordered-channel |
lib.rs | ordered-channel |
version | 1.2.0 |
created_at | 2024-01-23 23:40:26.060662+00 |
updated_at | 2025-03-09 16:27:49.878071+00 |
description | A channel that always receives messages in the correct order, even if they were sent out of order |
homepage | |
repository | https://gitlab.com/kornelski/ordered-channel |
max_upload_size | |
id | 1111337 |
size | 13,143 |
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.