Skip to main content

Function: computeRetryDelay()

computeRetryDelay(policy, attempt, failure?): RetryDecision

Whether attempt attempt (1-based, the attempt that just failed) is retried, and after how long. failure.nextRetryDelayMs overrides the computed delay for this retry only.

Parameters​

policy​

RetryPolicy

attempt​

number

failure?​

Failure

Returns​

RetryDecision