Crates.io | ordered-channel |
lib.rs | ordered-channel |
version | 1.1.0 |
source | src |
created_at | 2024-01-23 23:40:26.060662 |
updated_at | 2024-01-24 02:07:02.445859 |
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 | 10,408 |
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.