Skip to main content
cngx-src documentation

RetryConfig

Interface

projects/common/interactive/retry/with-retry.ts

Import#

import { RetryConfig } from '@cngx/common/interactive'

Description#

Configuration for withRetry().

Index#

Instance Properties#

backoff#"linear" | "exponential"
Optional

Backoff strategy. 'exponential' doubles the delay each attempt. Default: 'exponential'.

delay#number
Optional

Base delay in ms between retries. Default: 1000.

maxAttempts#number
Optional

Maximum number of attempts (including the first). Default: 3.