Skip to main content

Interface: RetryWithAbortOptions

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

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:61

Multiplier applied after each retry to grow the delay window.

Default Valueโ€‹

2;

initialDelay?โ€‹

optional initialDelay?: number

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

Initial delay between retries in milliseconds.

Default Valueโ€‹

1000;

maxDelay?โ€‹

optional maxDelay?: number

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

Maximum delay between retries in milliseconds.

Default Valueโ€‹

30000;

maxRetries?โ€‹

optional maxRetries?: number

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

Maximum number of retry attempts before giving up.

Default Valueโ€‹

3;

signal?โ€‹

optional signal?: AbortSignal

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

AbortSignal observed between attempts and before invoking the operation.