najamelan / pharos

Observer pattern which generates a futures 0.3 stream of events
https://crates.io/crates/pharos
40 stars 3 forks source link

Support Ringchannel #3

Open najamelan opened 5 years ago

najamelan commented 5 years ago

https://github.com/brunocodutra/ring-channel

This will prevent both DDOS with bounded channels and Unbounded memory consumption with unbounded channels at the price of dropping events.

It also has a general use case for situations where you want to take into account only the most recent event(s).