gotry

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg = struct {
	Debug bool
}{
	Debug: false,
}

Cfg default config

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