NextBackOff returns the duration to wait before retrying the operation, backoff.Stop to indicate that no more retries should be made. Example usage: duration := backoff.NextBackOff() if duration == backoff.Stop { Do not retry operation. } else { Sleep for duration and retry operation. }
()
| 31 | // } |
| 32 | // |
| 33 | NextBackOff() time.Duration |
| 34 | |
| 35 | // Reset to initial state. |
| 36 | Reset() |
no outgoing calls