Documentation ¶
Overview ¶
Package retry provides simple retry wrappers for functions that return an error
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultTimeout is a default timeout for retry operations DefaultTimeout = 2 * time.Minute // Interval is the time to wait between retry attempts Interval = 5 * time.Second // ErrAbort should be returned when an error occurs on which retrying should be aborted ErrAbort = errors.New("retrying aborted") )
Functions ¶
func Context ¶
Context is a retry wrapper that will retry the given function until it succeeds or the context is cancelled
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.