Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Retry ¶
Retry executes f up to attempts times with exponential backoff starting at sleep. It returns nil on the first successful attempt, or the last error if all attempts fail. The shouldRetry predicate decides whether a given error is retryable; if it returns false, Retry stops immediately and returns that error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.