gotry

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxRetry = 24 * time.Hour

MaxRetry 最大的尝试时间

Functions

func Retry

func Retry(num int, fn func()) (err error)

Retry errors

func RetryAt

func RetryAt(t time.Duration, fn func(at time.Duration))

RetryAt errors

func Ticker

func Ticker(fn func(dur time.Time) time.Duration)

Ticker errors

func Try

func Try(fn interface{}) func(...interface{}) func(...interface{}) (err error)

Try errors

func TryRaw

func TryRaw(fn reflect.Value) func(...reflect.Value) func(...reflect.Value) (err error)

TryRaw errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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