root 3bf41bf355 update | il y a 1 an | |
---|---|---|
.. | ||
.github | il y a 1 an | |
LICENSE | il y a 1 an | |
README.md | il y a 1 an | |
package.json | il y a 1 an | |
process-next-tick.js | il y a 1 an | |
queue-microtask.js | il y a 1 an | |
test.js | il y a 1 an |
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