Skip to content

RetryOptions

RetryOptions configures retry behavior around an asynchronous binding.

optional backoffMs?: number

backoffMs is the delay between attempts and defaults to 100 milliseconds.


binding: AsyncOp

binding is the asynchronous function operation to retry.


optional isRetryable?: (error) => boolean

isRetryable determines whether an Err should trigger another attempt.

Err

boolean


optional maxAttempts?: number

maxAttempts includes the initial attempt and defaults to three.