root 3bf41bf355 update | 1 سال پیش | |
---|---|---|
.. | ||
.github | 1 سال پیش | |
LICENSE | 1 سال پیش | |
README.md | 1 سال پیش | |
package.json | 1 سال پیش | |
process-next-tick.js | 1 سال پیش | |
queue-microtask.js | 1 سال پیش | |
test.js | 1 سال پیش |
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