jin-frame / tools/responses/getRetryInterval / getRetryInterval
Function: getRetryInterval()
getRetryInterval(
retry
,totalDuration
,eachDuration
,retryAfterSeconds?
):number
Defined in: packages/jin-frame/src/tools/responses/getRetryInterval.ts:9
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
retryAfterSeconds?
number
Optional Retry-After header value in seconds (takes highest priority)
Returns
number