backoff

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL