backoff

package module
v0.0.0-...-8fca5c0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 3 Imported by: 0

README

backoff

small, simple package for easy backoffs


see example dir for usage

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backoff

type Backoff struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(initial uint64, current uint64, max uint64, algo func(uint64) uint64) (*Backoff, error)

func (*Backoff) Backoff

func (bo *Backoff) Backoff()

func (*Backoff) Reset

func (bo *Backoff) Reset()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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