vue-indexer / node_modules / queue-tick /
..
.github/ workflows v1.0 1 month ago
LICENSE v1.0 1 month ago
README.md v1.0 1 month ago
package.json v1.0 1 month ago
process-next-tick.js v1.0 1 month ago
queue-microtask.js v1.0 1 month ago
test.js v1.0 1 month ago
README.md

queue-tick

Next tick shim that prefers process.nextTick over queueMicrotask for compat

npm install queue-tick

Usage

const queueTick = require('queue-tick')

// in Node it uses process.nextTick, in browsers it uses queueMicrotask
queueTick(() => console.log('laters'))

License

MIT