NoRetry class

Stub policy that blocks any retry tentative. Operations are not retried.

Methods

nextRetryTimeout(number)

This will always return -1 as no retry is desired.

shouldRetry(Error)

This will always return false as no retry is desired.

Method Details

nextRetryTimeout(number)

This will always return -1 as no retry is desired.

function nextRetryTimeout(_retryCount: number): number

Parameters

_retryCount

number

Returns

number

shouldRetry(Error)

This will always return false as no retry is desired.

function shouldRetry(_err: Error): boolean

Parameters

_err

Error

Returns

boolean

Will always be false: retry should not be attempted no matter what the error is.