root 3bf41bf355 update il y a 1 an
..
.github 3bf41bf355 update il y a 1 an
LICENSE 3bf41bf355 update il y a 1 an
README.md 3bf41bf355 update il y a 1 an
package.json 3bf41bf355 update il y a 1 an
process-next-tick.js 3bf41bf355 update il y a 1 an
queue-microtask.js 3bf41bf355 update il y a 1 an
test.js 3bf41bf355 update il y a 1 an

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