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.
Extends
Section titled “Extends”Properties
Section titled “Properties”duration
Section titled “duration”duration:
number
Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:137
Duration in milliseconds after which the call times out.
Inherited from
Section titled “Inherited from”replaySafe?
Section titled “replaySafe?”
optionalreplaySafe?: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.
strategy?
Section titled “strategy?”
optionalstrategy?:"aggressive"|"cooperative"
Defined in: packages/pipeline-resilience/src/interfaces/resilience-options.interface.ts:142
aggressive(default): reject immediately withTaskCancelledError.cooperative: signal cancellation and wait for the call to settle.