bifocal/node_modules/queue-tick
Jean Viscogliosi-Pate f8836547f1 Broken socials 2024-06-19 06:56:58 -07:00
..
.github/workflows Broken socials 2024-06-19 06:56:58 -07:00
LICENSE Broken socials 2024-06-19 06:56:58 -07:00
README.md Broken socials 2024-06-19 06:56:58 -07:00
package.json Broken socials 2024-06-19 06:56:58 -07:00
process-next-tick.js Broken socials 2024-06-19 06:56:58 -07:00
queue-microtask.js Broken socials 2024-06-19 06:56:58 -07:00
test.js Broken socials 2024-06-19 06:56:58 -07:00

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