RetryOption
Configuration options for the retry mechanism.
Properties
Section titled “Properties”baseDelay?
Section titled “baseDelay?”
optionalbaseDelay:number
The base delay (in milliseconds) for exponential backoff.
Defaults to 500 ms if not specified.
maxDelay?
Section titled “maxDelay?”
optionalmaxDelay:number
The maximum delay (in milliseconds) between retry attempts.
Defaults to 30000 ms (30 seconds).
maxRetry?
Section titled “maxRetry?”
optionalmaxRetry:number
The maximum number of retry attempts before giving up.
Defaults to 3 if not specified.
timeout?
Section titled “timeout?”
optionaltimeout:number
The timeout (in milliseconds) for each operation attempt.
If the operation does not complete within this time, it will be aborted.
Defaults to 5000 ms (5 seconds). Set to 0 to disable timeout.