rabin ef108495d0 edit | il y a 8 mois | |
---|---|---|
.. | ||
.github | il y a 8 mois | |
LICENSE | il y a 8 mois | |
README.md | il y a 8 mois | |
package.json | il y a 8 mois | |
process-next-tick.js | il y a 8 mois | |
queue-microtask.js | il y a 8 mois | |
test.js | il y a 8 mois |
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