13 lines
147 B
Go
13 lines
147 B
Go
package backoff
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
type Backoff interface {
|
|
Reset()
|
|
Next() time.Duration
|
|
After(context.Context) <-chan time.Time
|
|
}
|