setimmediate.js

1.0.1 • Public • Published

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. For most cases, the underlying "next tick" mechanism is irrelevant.

Usage

require('setimmediate.js');

setImmediate(function () {
  console.log('something');
});

Nothing is exported! A global setImmediate function is added!

/setimmediate.js/

    Package Sidebar

    Install

    npm i setimmediate.js

    Weekly Downloads

    1,051

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • jongleberry
    • tootallnate
    • jonathanong
    • clintwood
    • thehydroimpulse
    • stephenmathieson
    • trevorgerhardt
    • timaschew
    • hughsk