Skip to main content

Interface: RetryWithAbortOptions

Defined in: shared/utils/abortUtils.ts:150

Configuration for retry operations that respect an AbortSignal.

Remarksโ€‹

Applies capped exponential backoff between attempts. When the supplied signal aborts, the retry loop stops immediately even between retries.

Propertiesโ€‹

backoffMultiplier?โ€‹

optional backoffMultiplier?: number;

Defined in: shared/utils/abortUtils.ts:156

Multiplier applied after each retry to grow the delay window.

Default Valueโ€‹

2;

initialDelay?โ€‹

optional initialDelay?: number;

Defined in: shared/utils/abortUtils.ts:162

Initial delay between retries in milliseconds.

Default Valueโ€‹

1000;

maxDelay?โ€‹

optional maxDelay?: number;

Defined in: shared/utils/abortUtils.ts:168

Maximum delay between retries in milliseconds.

Default Valueโ€‹

30000;

maxRetries?โ€‹

optional maxRetries?: number;

Defined in: shared/utils/abortUtils.ts:174

Maximum number of retry attempts before giving up.

Default Valueโ€‹

3;

signal?โ€‹

optional signal?: AbortSignal;

Defined in: shared/utils/abortUtils.ts:176

AbortSignal observed between attempts and before invoking the operation.