Global

Type Definitions

backoffFunc(nRetries)

A function to be retried by backoffRetry.
With this function, the func passed in will be retried until the given
function succeeds, or hit the retry timeout condition specified via option.
The retries take place with a back-off algorithm (doubling the previous
interval time) until the given function succeeds, or the retries were
attempted for more than the time specified by option.duration. If all
retries fail, then this function return the last error returned by the
given function, func.

Parameters:
Name Type Description
nRetries number

Current ordinal number of this function call. The
number for the initial call will be 0.

Source: