retry

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(tries int, sleep time.Duration, tryFunc TryFunc, logFunc LogFunc) error

Retry a function repeatedly and log its errors. https://upgear.io/blog/simple-golang-retry-function/

Types

type LogFunc

type LogFunc func(error)

type TryFunc

type TryFunc func() error

Jump to

Keyboard shortcuts

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