root 3bf41bf355 update 1 سال پیش
..
.github 3bf41bf355 update 1 سال پیش
LICENSE 3bf41bf355 update 1 سال پیش
README.md 3bf41bf355 update 1 سال پیش
package.json 3bf41bf355 update 1 سال پیش
process-next-tick.js 3bf41bf355 update 1 سال پیش
queue-microtask.js 3bf41bf355 update 1 سال پیش
test.js 3bf41bf355 update 1 سال پیش

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