Skip to main content

Configuration Options

OptionTypeDefaultDescription
attemptsnumber3Maximum number of attempts (including the initial one).
delaynumber1000Initial wait time before retrying.
backoffFactornumber1Multiplier for exponential backoff.
shouldRetryfunction() => trueFunction deciding whether a retry should occur based on the error.
onRetryfunctionundefinedCallback executed after each failed attempt.