rubyist / circuitbreaker

Circuit Breakers in Go
MIT License
1.12k stars 109 forks source link

{Add/Remove}Listener capability to allow a coalesced event channel #38

Closed spencerkimball closed 8 years ago

spencerkimball commented 8 years ago

This allows for a single listener across many circuit breakers, a convenient pattern in some use cases.

rubyist commented 8 years ago

Perfect timing, I was just about to add something like this myself as I'm finding Subscribe() to be insufficient. Thanks!

spencerkimball commented 8 years ago

Great! This is a very cool mechanism; and I like the attention paid to making it almost entirely lock-free. We're planning to start making considerable use of it in CockroachDB.