withTimer sets a custom timer for managing delays between retries.
(t timer)
| 46 | |
| 47 | // withTimer sets a custom timer for managing delays between retries. |
| 48 | func withTimer(t timer) RetryOption { |
| 49 | return func(args *retryOptions) { |
| 50 | args.Timer = t |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | // WithNotify sets a function called after each failed attempt that will be |
| 55 | // retried. See Notify for exactly when it fires. |
no outgoing calls
searching dependent graphs…