Skip to main content

Interface: RetryWithAbortOptions

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

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

Multiplier applied after each retry to grow the delay window.

Default Valueโ€‹

2;

initialDelay?โ€‹

optional initialDelay: number

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

Initial delay between retries in milliseconds.

Default Valueโ€‹

1000;

maxDelay?โ€‹

optional maxDelay: number

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

Maximum delay between retries in milliseconds.

Default Valueโ€‹

30000;

maxRetries?โ€‹

optional maxRetries: number

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

Maximum number of retry attempts before giving up.

Default Valueโ€‹

3;

signal?โ€‹

optional signal: AbortSignal

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

AbortSignal observed between attempts and before invoking the operation.