rittenhop-ghost/versions/5.94.2/node_modules/queue-tick
2024-09-23 19:05:38 -04:00
..
.github/workflows adding local files for running this....locally 2024-09-23 19:05:38 -04:00
LICENSE adding local files for running this....locally 2024-09-23 19:05:38 -04:00
package.json adding local files for running this....locally 2024-09-23 19:05:38 -04:00
process-next-tick.js adding local files for running this....locally 2024-09-23 19:05:38 -04:00
queue-microtask.js adding local files for running this....locally 2024-09-23 19:05:38 -04:00
README.md adding local files for running this....locally 2024-09-23 19:05:38 -04:00
test.js adding local files for running this....locally 2024-09-23 19:05:38 -04:00

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