/
6gcats
/
6GC
Обзор
Документация
Войти
/
6gcats
/
6GC
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
node_modules/queue-microtask/index.js
9 строк
402 B
reis
final version
15 янв 2025, 21:15
15 янв 2025, 21:15
20bd4c3
Код
Авторство
О чём код?
/*! 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))