/
ramanzes
/
MarkDownConverter
Обзор
Документация
Войти
/
ramanzes
/
MarkDownConverter
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
node_modules/queue-microtask/index.js
9 строк
402 B
Роман Сахно
Initial commit
13 ноя 2025, 19:10
13 ноя 2025, 19:10
feeed38
Код
Авторство
О чём код?
/*! 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))