Skip to content

TimeoutOptions

Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:146

Timeout configuration of the behavior. Underlying work stops only when it cooperates with the abort signal.

duration: number

Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:137

Duration in milliseconds after which the call times out.

TimeoutPolicyOptions.duration


optional replaySafe?: boolean

Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:154

Explicit acknowledgement that an aggressive timeout is safe on a command or event handler. The caller is answered while the handler keeps running, so a retry, a released idempotency claim or a client retry can run the same side effect alongside it. Required for those request kinds unless the strategy is cooperative.


optional strategy?: "aggressive" | "cooperative"

Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:142

  • aggressive (default): reject immediately with TaskCancelledError.
  • cooperative: signal cancellation and wait for the call to settle.

TimeoutPolicyOptions.strategy