rabin ef108495d0 edit 8 bulan lalu
..
.github ef108495d0 edit 8 bulan lalu
LICENSE ef108495d0 edit 8 bulan lalu
README.md ef108495d0 edit 8 bulan lalu
package.json ef108495d0 edit 8 bulan lalu
process-next-tick.js ef108495d0 edit 8 bulan lalu
queue-microtask.js ef108495d0 edit 8 bulan lalu
test.js ef108495d0 edit 8 bulan lalu

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