AskJS] Leak-free way of getting a rejected promise out of AbortSignal?
I frequently need the following pattern when working with non cancelable promises: return Promise.race nonCancelablePromise, new Promise , reject gt; abortSignal.addEventListener quot;abort quot;, reject ; However, this keeps all those promises in memory until AbortSignal is...