Mohammad Asif cf937194cb Removed un-waned things 1. пре 6 месеци
..
.github cf937194cb Removed un-waned things 1. пре 6 месеци
LICENSE cf937194cb Removed un-waned things 1. пре 6 месеци
README.md cf937194cb Removed un-waned things 1. пре 6 месеци
package.json cf937194cb Removed un-waned things 1. пре 6 месеци
process-next-tick.js cf937194cb Removed un-waned things 1. пре 6 месеци
queue-microtask.js cf937194cb Removed un-waned things 1. пре 6 месеци
test.js cf937194cb Removed un-waned things 1. пре 6 месеци

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