delayMillis

fun delayMillis(respectRetryAfterHeader: Boolean = true, block: HttpRequestRetry.DelayContext.(retry: Int) -> Long)

Specifies delay logic for retries. The block accepts the number of retries and should return the number of milliseconds to wait before retrying.