exponentialBackoff

package
v0.0.0-...-fa5d649 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExponentialBackoff

type ExponentialBackoff struct {
	// contains filtered or unexported fields
}

ExponentialBackoff ...

func New

func New(ctx context.Context, clock clockwork.Clock, max int) *ExponentialBackoff

New ...

func (*ExponentialBackoff) LoopForever

func (e *ExponentialBackoff) LoopForever(clb func() bool)

LoopForever execute the callback with exponential backoff The callback return true if we should continue retrying or false if we should stop and exit.

func (*ExponentialBackoff) Reset

func (e *ExponentialBackoff) Reset()

Reset ...

func (*ExponentialBackoff) Wait

func (e *ExponentialBackoff) Wait()

Wait ...

Jump to

Keyboard shortcuts

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