jmap-kit
    Preparing search index...
    • Wrap a Transport implementation so that all requests and abort controllers are tracked in the provided Sets. Each request promise is added to the set and removed when settled. Each AbortController is tracked and removed when aborted.

      Parameters

      • transport: Transport

        The original Transport implementation.

      • activeRequests: Set<Promise<unknown>>

        The Set to track all active (not yet settled) request promises.

      • activeAbortControllers: Set<AbortController>

        The Set to track all active (not yet aborted) AbortControllers.

      Returns Transport

      A new Transport that tracks all requests and abort controllers.