AniLink - v3.0.0
    Preparing search index...

    Function bridgeAbortSignal

    • Bridges an optional external AbortSignal into a traversal-owned AbortController so a single caller-supplied signal can cancel many in-flight requests. The returned dispose function aborts the traversal-owned controller and removes the listener from the external signal; it must be called in a finally block so a long-lived external controller does not accumulate one listener per traversal and so already-launched look-ahead requests are cancelled when the traversal ends early.

      When external is undefined, a fresh un-aborted controller is created and dispose only aborts that controller (no external listener to remove).

      Parameters

      • external: AbortSignal | undefined

        The caller-supplied signal, when provided.

      Returns AbortBridge

      The bridge holding the traversal signal and its cleanup function.