nextRetryDelay

abstract fun nextRetryDelay(failedAttempts: Int): Duration

Returns the delay before the next attempt once failedAttempts attempts have failed, and is called only after shouldRetry returned true. A zero or negative delay retries at once, and Duration.INFINITE waits until the retrying coroutine is canceled.