retry

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retry

type Retry struct {
	Attempt int // Current attempt
	Wait    int // Wait between attempt
}

Retry save the common variables:

func (*Retry) Retry

func (r *Retry) Retry(fn func() bool) bool

Retry is a method to call many times until satify return value.

Jump to

Keyboard shortcuts

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