Skip to main content

Interface: RetryWithAbortOptions

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

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

Multiplier applied after each retry to grow the delay window.

Default Valueโ€‹

2;

initialDelay?โ€‹

optional initialDelay: number

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

Initial delay between retries in milliseconds.

Default Valueโ€‹

1000;

maxDelay?โ€‹

optional maxDelay: number

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

Maximum delay between retries in milliseconds.

Default Valueโ€‹

30000;

maxRetries?โ€‹

optional maxRetries: number

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

Maximum number of retry attempts before giving up.

Default Valueโ€‹

3;

signal?โ€‹

optional signal: AbortSignal

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

AbortSignal observed between attempts and before invoking the operation.