Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...

    Function combineAbortSignals

    • A signal that aborts when a or b does, carrying the reason of whichever fired first (an already-aborted input aborts it at once).

      Uses native AbortSignal.any when available; the fallback relay registers listeners on both inputs, so call dispose() once the work using signal has settled (always safe to call). With one input that input is returned as is; with none the result is undefined (so a defined a always gives a scope, which the return type says).

      Type Parameters

      • A extends AbortSignal | undefined

      Parameters

      • a: A
      • Optionalb: AbortSignal

      Returns CombinedAbortScope<A>