shouldRetry
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.
Returns true if the task should be retried given the policy and current attempt count.
Zero-based index of the current retry attempt.
The configured retry policy.