https://github.com/mafintosh/queue-tick
Next tick shim that prefers process.nextTick over queueMicrotask for compat
https://github.com/mafintosh/queue-tick
Last synced: about 1 month ago
JSON representation
Next tick shim that prefers process.nextTick over queueMicrotask for compat
- Host: GitHub
- URL: https://github.com/mafintosh/queue-tick
- Owner: mafintosh
- License: mit
- Created: 2021-08-10T09:39:21.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-14T18:37:59.000Z (over 2 years ago)
- Last Synced: 2025-04-11T12:28:28.566Z (about 1 month ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-repos - mafintosh/queue-tick - Next tick shim that prefers process.nextTick over queueMicrotask for compat (JavaScript)
README
# 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