Skip to main content
Version: Current

BackoffOptions

@rotorsoft/act-root


@rotorsoft/act-root / act/src / BackoffOptions

Type Alias: BackoffOptions

BackoffOptions = object

Defined in: libs/act/src/types/action.ts:505

Retry backoff configuration.

Propertiesโ€‹

baseMsโ€‹

readonly baseMs: number

Defined in: libs/act/src/types/action.ts:507

Base delay (must be โ‰ฅ 0)


jitter?โ€‹

readonly optional jitter?: boolean

Defined in: libs/act/src/types/action.ts:509

Multiply final delay by 0.5 + random() (range [0.5, 1.5)) to avoid thundering herds when many callers retry in lockstep


maxMs?โ€‹

readonly optional maxMs?: number

Defined in: libs/act/src/types/action.ts:508

Optional cap; only used by exponential


strategyโ€‹

readonly strategy: BackoffStrategy

Defined in: libs/act/src/types/action.ts:506

BackoffStrategy