executor

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package executor 重试执行封装函数 Created by chenguolin 2018-11-16

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunUntilSuccess

func RunUntilSuccess(name string, f func() (interface{}, error)) interface{}

RunUntilSuccess 无限重试直到成功 @name 执行步骤名称 @f 执行函数

func RunUntilSuccessNoRes

func RunUntilSuccessNoRes(name string, f func() error)

RunUntilSuccessNoRes 无限重试直到成功 没有返回结果 @name 执行步骤名称 @f 执行函数

Types

This section is empty.

Jump to

Keyboard shortcuts

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