Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/setimmediate.js
a really stupid setImmediate polyfill
https://github.com/component/setimmediate.js
Last synced: 13 days ago
JSON representation
a really stupid setImmediate polyfill
- Host: GitHub
- URL: https://github.com/component/setimmediate.js
- Owner: component
- License: mit
- Created: 2014-05-03T21:40:45.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-29T02:29:23.000Z (over 10 years ago)
- Last Synced: 2024-11-14T10:43:28.173Z (about 1 month ago)
- Language: JavaScript
- Size: 147 KB
- Stars: 8
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# setimmediate.js
A really stupid, lightweight `setImmediate` polyfill for browsers and node 0.8.
Supports the browser as well as node.For a most robust polyfill,
you should probably use [setImmediate](https://github.com/YuzuJS/setImmediate).
For most cases,
the underlying "next tick" mechanism is irrelevant.## Usage
```js
require('setimmediate.js');setImmediate(function () {
console.log('something');
});
```Nothing is exported! A global `setImmediate` function is added!