Skip to content

Interface: RetryOptions ​

Defined in: src/core/withRetry.ts:3

Properties ​

backoffFactor? ​

ts
optional backoffFactor?: number;

Defined in: src/core/withRetry.ts:9

Exponential backoff multiplier. Default: 2.


initialDelayMs? ​

ts
optional initialDelayMs?: number;

Defined in: src/core/withRetry.ts:7

Delay before the first retry in milliseconds. Default: 1000.


maxAttempts? ​

ts
optional maxAttempts?: number;

Defined in: src/core/withRetry.ts:5

Total number of attempts including the first. Default: 3.


retryRateLimit? ​

ts
optional retryRateLimit?: boolean;

Defined in: src/core/withRetry.ts:14

Also retry a 429, waiting out Retry-After when the API sent one. Off by default: a rate limit asks you to slow the whole client down, and retrying one call in place papers over that.