function

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout              = time.Minute * 3
	DefaultInterval             = time.Second * 5
	DefaultExpectedSuccessCount = 4
)

Variables

This section is empty.

Functions

func ExecuteWithDefaultTimeoutAndContinuesSuccessCount

func ExecuteWithDefaultTimeoutAndContinuesSuccessCount(executeFunc func() (bool, error)) error

func ExecuteWithTimeout

func ExecuteWithTimeout(executeFunc func() (bool, error), timeout time.Duration, interval time.Duration) error

func ExecuteWithTimeoutAndContinuesSuccessCount

func ExecuteWithTimeoutAndContinuesSuccessCount(executeFunc func() (bool, error), timeout time.Duration, interval time.Duration, expectedSuccessCount int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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