Review Feedback

This commit is contained in:
Paul Bellamy
2016-04-11 16:47:33 +01:00
parent fcfd42e5d5
commit 333d32fbe5
4 changed files with 90 additions and 22 deletions

View File

@@ -22,6 +22,7 @@ type Interface interface {
Start()
Stop()
SetInitialBackoff(time.Duration)
SetMaxBackoff(time.Duration)
}
// New makes a new Interface
@@ -40,6 +41,10 @@ func (b *backoff) SetInitialBackoff(d time.Duration) {
b.initialBackoff = d
}
func (b *backoff) SetMaxBackoff(d time.Duration) {
b.maxBackoff = d
}
// Stop the backoff, and waits for it to stop.
func (b *backoff) Stop() {
close(b.quit)