rabin ef108495d0 edit há 8 meses atrás
..
.github ef108495d0 edit há 8 meses atrás
LICENSE ef108495d0 edit há 8 meses atrás
README.md ef108495d0 edit há 8 meses atrás
package.json ef108495d0 edit há 8 meses atrás
process-next-tick.js ef108495d0 edit há 8 meses atrás
queue-microtask.js ef108495d0 edit há 8 meses atrás
test.js ef108495d0 edit há 8 meses atrás

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