shouldRetry

fun shouldRetry(retryCount: Int, policy: RetryPolicy): Boolean

Returns true if the task should be retried given the policy and current attempt count.

Parameters

retryCount

Zero-based index of the current retry attempt.

policy

The configured retry policy.