circuitbreaker icon indicating copy to clipboard operation
circuitbreaker copied to clipboard

BreakerEvent now implements Stringer interface

Open beono opened this issue 7 years ago • 1 comments
trafficstars

Hello

Thanks for the library. I added implementation of Stringer interface for BreakerEvent.

Usage example:

ch := builder.cb.Subscribe()
	go func() {
		for {
			e := <- ch
			fmt.Println(e) // prints nice message instead of a numeric value
		}
	}()

beono avatar Feb 16 '18 16:02 beono

Hello @rubyist,

Do you still maintain the repo?

beono avatar Feb 23 '18 14:02 beono