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