CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
index.js10 linesDownload Raw Back to queue-microtask
1/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */2let promise3 4module.exports = typeof queueMicrotask === 'function'5  ? queueMicrotask.bind(typeof window !== 'undefined' ? window : global)6  // reuse resolved promise, and allocate it lazily7  : cb => (promise || (promise = Promise.resolve()))8    .then(cb)9    .catch(err => setTimeout(() => { throw err }, 0))10