root 3bf41bf355 update | 1 jaar geleden | |
---|---|---|
.. | ||
.github | 1 jaar geleden | |
LICENSE | 1 jaar geleden | |
README.md | 1 jaar geleden | |
package.json | 1 jaar geleden | |
process-next-tick.js | 1 jaar geleden | |
queue-microtask.js | 1 jaar geleden | |
test.js | 1 jaar geleden |
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