Optional
factor2
Optional
foreverWhether to retry forever.
false
Optional
maxThe maximum time (in milliseconds) that the retried operation is allowed to run.
Infinity
Optional
maxThe maximum number of milliseconds between two retries.
Infinity
Optional
minThe number of milliseconds before starting the first retry.
1000
Optional
onAn optional function that is invoked after a new retry is performed. It's passed the
Error
that triggered it as a parameter.
Optional
randomizeRandomizes the timeouts by multiplying a factor between 1-2.
false
Optional
retriesThe maximum amount of times to retry the operation.
10
Optional
unrefWhether to unref the setTimeout's.
false
Generated using TypeDoc
The exponential factor to use.