Mohammad Asif cf937194cb Removed un-waned things 1. | 6 mēneši atpakaļ | |
---|---|---|
.. | ||
.github | 6 mēneši atpakaļ | |
LICENSE | 6 mēneši atpakaļ | |
README.md | 6 mēneši atpakaļ | |
package.json | 6 mēneši atpakaļ | |
process-next-tick.js | 6 mēneši atpakaļ | |
queue-microtask.js | 6 mēneši atpakaļ | |
test.js | 6 mēneši atpakaļ |
Next tick shim that prefers process.nextTick over queueMicrotask for compat
npm install queue-tick
const queueTick = require('queue-tick')
// in Node it uses process.nextTick, in browsers it uses queueMicrotask
queueTick(() => console.log('laters'))
MIT