RetryOptions
RetryOptions configures retry behavior around an asynchronous binding.
Properties
Section titled “Properties”backoffMs?
Section titled “backoffMs?”
optionalbackoffMs?:number
backoffMs is the delay between attempts and defaults to 100 milliseconds.
binding
Section titled “binding”binding:
AsyncOp
binding is the asynchronous function operation to retry.
isRetryable?
Section titled “isRetryable?”
optionalisRetryable?: (error) =>boolean
isRetryable determines whether an Err should trigger another attempt.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”boolean
maxAttempts?
Section titled “maxAttempts?”
optionalmaxAttempts?:number
maxAttempts includes the initial attempt and defaults to three.