kamilsk / retry

♻️ The most advanced interruptible mechanism to perform actions repetitively until successful.
https://pkg.go.dev/github.com/kamilsk/retry/v5
MIT License
340 stars 14 forks source link

extend breaker interface #140

Closed kamilsk closed 4 years ago

kamilsk commented 4 years ago
// A Breaker carries a cancellation signal to break an action execution.
//
// It is a subset of context.Context and github.com/kamilsk/breaker.Breaker.
type Breaker interface {
    // Done returns a channel that's closed when a cancellation signal occurred.
    Done() <-chan struct{}

    Error() error
}
kamilsk commented 4 years ago

blocked by https://github.com/kamilsk/breaker/issues/8