backoff

abstract suspend fun backoff(attempt: Int)

Delays for an appropriate amount of time after the given attempt number.

Parameters

attempt

The ordinal index of the attempt, used in calculating the exact amount of time to delay.