Spaces:
Running
Running
Download node_modules/queue-microtask/index.js from Chunte/HFBA: direct link, hf CLI and curl.
- Browser
- Download file 402 Bytes
-
https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/queue-microtask/index.js
- Command line
-
hf download hf://spaces/Chunte/HFBA@refs/pr/1/node_modules/queue-microtask/index.js
-
curl -L -o index.js https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/queue-microtask/index.js
402 Bytes
| /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ | |
| let promise | |
| module.exports = typeof queueMicrotask === 'function' | |
| ? queueMicrotask.bind(typeof window !== 'undefined' ? window : global) | |
| // reuse resolved promise, and allocate it lazily | |
| : cb => (promise || (promise = Promise.resolve())) | |
| .then(cb) | |
| .catch(err => setTimeout(() => { throw err }, 0)) | |