This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const registry = new FinalizationRegistry((callback) => void callback()); | |
export function polyfillAbortSignalAny() { | |
/** @param {AbortSignal[]} signals */ | |
return (signals) => { | |
// if (AbortSignal.any) { | |
// return AbortSignal.any(signals); | |
// } | |
const controller = new AbortController(); | |
for (const signal of signals) { |