Skip to content

jin-frame / tools/responses/getRetryInterval / getRetryInterval

Function: getRetryInterval()

getRetryInterval(retry, totalDuration, eachDuration): number

Defined in: src/tools/responses/getRetryInterval.ts:8

Parameters

retry

NonNullable<IFrameRetry & object>

retry configuration from the internal data

totalDuration

number

The total duration(ms) of all retries since the start of the API request

eachDuration

number

duration(ms) of a single retry attempt

Returns

number