task

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTimedOut = errors.New("timed out performing task")

ErrTimedOut is returned when an operation times out

Functions

func DoRetryWithTimeout

func DoRetryWithTimeout(t func() (interface{}, bool, error), timeout, timeBeforeRetry time.Duration, log logr.Logger) (interface{}, error)

DoRetryWithTimeout performs given task with given timeout and timeBeforeRetry. The function t returns a result out, a boolean to retry, and an error containing the reason for failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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