retry

package
v1.4.3-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &Retry{3, types.Duration(3 * time.Second)}

Functions

func Do

func Do(retry *Retry, exec func() error) error

Types

type Retry

type Retry struct {
	Repeats  int
	Interval types.Duration
}

func (Retry) Do

func (r Retry) Do(exec func() error) (err error)

func (*Retry) SetDefault

func (r *Retry) SetDefault()

Jump to

Keyboard shortcuts

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