Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
LICENSE | 2024-10-02 08:35 | 1.1K | ||
README.md | 2024-10-02 08:35 | 313 | ||
package.json | 2024-10-02 08:35 | 669 | ||
process-next-tick.js | 2024-10-02 08:35 | 160 | ||
queue-microtask.js | 2024-10-02 08:35 | 108 | ||
test.js | 2024-10-02 08:35 | 208 |
# queue-tick Next tick shim that prefers process.nextTick over queueMicrotask for compat ``` npm install queue-tick ``` ## Usage ``` js const queueTick = require('queue-tick') // in Node it uses process.nextTick, in browsers it uses queueMicrotask queueTick(() => console.log('laters')) ``` ## License MIT