package backoff import ( "context" "time" ) type Backoff interface { Reset() Next() time.Duration After(context.Context) <-chan time.Time }