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.
The original Transport implementation.
The Set to track all active (not yet settled) request promises.
The Set to track all active (not yet aborted) AbortControllers.
A new Transport that tracks all requests and abort controllers.
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.