root 3bf41bf355 update | 1 年之前 | |
---|---|---|
.. | ||
.github | 1 年之前 | |
LICENSE | 1 年之前 | |
README.md | 1 年之前 | |
package.json | 1 年之前 | |
process-next-tick.js | 1 年之前 | |
queue-microtask.js | 1 年之前 | |
test.js | 1 年之前 |
Next tick shim that prefers process.nextTick over queueMicrotask for compat
npm install queue-tick
const queueTick = require('queue-tick')
// in Node it uses process.nextTick, in browsers it uses queueMicrotask
queueTick(() => console.log('laters'))
MIT