Exponential Back Off
class ExponentialBackOff(initialDelay: Duration = 1.seconds, factor: Double = 2.0) : RetryDelayStrategy
Content copied to clipboard
A RetryDelayStrategy where the delay is multiplied by a constant factor after each attempt.
Constructors
Link copied to clipboard
fun ExponentialBackOff(initialDelay: Duration = 1.seconds, factor: Double = 2.0)
Content copied to clipboard
Functions
Link copied to clipboard
Calculates the time to wait before the given attempt.