nextDelay

fun nextDelay(retryCount: Int, policy: RetryPolicy): Long

Returns the delay in milliseconds before the next retry attempt.

Return

Delay in milliseconds. Returns 0 for RetryPolicy.None.

Parameters

retryCount

Zero-based index of the current retry attempt.

policy

The configured retry policy.