/
d.gorschkov
/
Apex
Обзор
Документация
Войти
/
d.gorschkov
/
Apex
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/queue-microtask/index.js
9 строк
402 B
DmitriyGorshkovstar
first_commit
20 янв 2026, 19:38
20 янв 2026, 19:38
21d2719
Код
Авторство
О чём код?
/*! 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))