xtry

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Err               = xerror.NewXErr("XTry")
	ErrNotFuncType    = Err.New("func type not match error")
	ErrParamsNotMatch = Err.New("params not match error")
	ErrRetry          = Err.New("retry error")
)

Functions

func Retry

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

Retry xerror

func RetryAt

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

RetryAt xerror

func Ticker

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

Ticker xerror

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