Function: anySignal()¶
Defined in: rine-ts-sdk/src/utils/abort.ts:53
Combine multiple signals into one that aborts when ANY input aborts.
The composed signal's reason is the reason from whichever input fired
first — this preserves the RineTimeoutError reason attached by
timeoutSignal() (and matching per-op timers in resources), so downstream
signal.reason instanceof RineTimeoutError checks classify timeouts
correctly instead of seeing a generic AbortError.
Listeners are detached from the remaining inputs as soon as the combined signal fires — this prevents retaining long-lived source signals (e.g. a global client signal) through short-lived request signals.
Parameters¶
| Parameter | Type |
|---|---|
...signals |
AbortSignal[] |
Returns¶
AbortSignal