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