Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Periodically ¶
Invoke f immediately, and once for every interval after that until f returns an error or context is canceled. Returns the first error from f, or ctx.Err() if the context is canceled.
func RetryDuration ¶
func RetryDuration(numRetries int, minDuration time.Duration, maxDuration time.Duration) time.Duration
Return a duration in the range [minDuration, maxDuration) that is suitable for waiting before retrying an operation. numRetries is the number of prior retries. The duration gets exponentially longer as numRetries gets larger, and contains random jitter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.