Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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!