NewExponentialBackOff creates an instance of ExponentialBackOff using default values.
()
| 63 | |
| 64 | // NewExponentialBackOff creates an instance of ExponentialBackOff using default values. |
| 65 | func NewExponentialBackOff() *ExponentialBackOff { |
| 66 | return &ExponentialBackOff{ |
| 67 | InitialInterval: DefaultInitialInterval, |
| 68 | RandomizationFactor: DefaultRandomizationFactor, |
| 69 | Multiplier: DefaultMultiplier, |
| 70 | MaxInterval: DefaultMaxInterval, |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | // Reset the interval back to the initial retry interval and restarts the timer. |
| 75 | // Reset must be called before using b. |
no outgoing calls
searching dependent graphs…