ordered-channel

Crates.ioordered-channel
lib.rsordered-channel
version1.1.0
sourcesrc
created_at2024-01-23 23:40:26.060662
updated_at2024-01-24 02:07:02.445859
descriptionA channel that always receives messages in the correct order, even if they were sent out of order
homepage
repositoryhttps://gitlab.com/kornelski/ordered-channel
max_upload_size
id1111337
size10,408
Kornel (kornelski)

documentation

README

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.

Commit count: 0

cargo fmt