asyncall

asyncall.js - Asynchronous function call on Node or browser

asyncall.js

Asynchronous function call on Node or Browser.

###on Browser.

<script type="text/javascript" src="asyncall.min.js"></script>
asyncall(function () {
    alert(1 + 2);
});

###on Node.

var asyncall = require('asyncall');
 
asyncall(function () {
    alert(1 + 2);
});
$ npm install asyncall
  • setImmediate (IE 10, Node >= v0.9)
  • process.nextTick (Node <= v0.8)
  • MessageChannel (WebKit)
  • setTimeout (Legacy)