gotry

package
v0.2.43 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGotry          = xerror.NewXErr("Gotry")
	ErrNotFuncType    = ErrGotry.New("func type not match error")
	ErrParamsNotMatch = ErrGotry.New("params not match error")
	ErrRetry          = ErrGotry.New("retry error")
)
View Source
var IsDebug = pkg.IsDebug()

Functions

func Retry

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

Retry error

func RetryAt

func RetryAt(t time.Duration, fn func(i int))

RetryAt error

func Ticker

func Ticker(fn func(i int) time.Duration)

Ticker error

func Try

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

Try xerror

func TryRaw

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

TryRaw xerror

Types

This section is empty.

Jump to

Keyboard shortcuts

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