dstream

Crates.iodstream
lib.rsdstream
version0.1.1
sourcesrc
created_at2021-05-29 08:29:44.620566
updated_at2021-05-29 09:57:05.715919
descriptionDelayedStream - delays items and drops same items coming within given interval
homepagehttps://github.com/izderadicka/dstream
repositoryhttps://github.com/izderadicka/dstream
max_upload_size
id403451
size9,229
Ivan Zderadicka (izderadicka)

documentation

https://docs.rs/dstream

README

dstream

Build Crates.io doc.rs

DelayedStream - wraps any stream with items as (Key, Value) (or more generally anything implementing KeyValue trait). Output is delayed by at least delay value - if in meanwhile new item comes with same Key, old one is dropped and new one is waiting delay again.

Use case is when there are similar items (same Key) coming sequentially in short intervals past further only latest one, or one when interval to previous one gets larger then delay.

Commit count: 32

cargo fmt