backoff/backoff.go

13 lines
147 B
Go
Raw Normal View History

2026-02-08 15:20:10 -05:00
package backoff
import (
"context"
"time"
)
type Backoff interface {
Reset()
Next() time.Duration
After(context.Context) <-chan time.Time
}