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