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

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