exponentialDelay

fun exponentialDelay(base: Double = 2.0, maxDelayMs: Long = 60000, randomizationMs: Long = 1000, respectRetryAfterHeader: Boolean = true)

Specifies an exponential delay between retries, which is calculated using the Exponential backoff algorithm. This delay equals to base ^ retryCount * 1000 + [0..randomizationMs]