Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Continue ¶
func Continue(c Controller) bool
Continue is a convenience function to check when we can fire the next invocation of the desired backoff code
for backoff.Continue(c) { ... your code ... }
Types ¶
type Controller ¶
type Controller interface { Done() <-chan struct{} Next() <-chan struct{} }
type Policy ¶
type Policy interface {
Start(context.Context) Controller
}
func NewConstantPolicy ¶
func NewConstantPolicy() Policy
Click to show internal directories.
Click to hide internal directories.