runlater
v0.0.12
Published
runlater.js runs code asynchronously at a later time. This library is used specifically for cleanup in mojo.js.
Downloads
17
Readme
runlater.js runs code asynchronously at a later time. This library is used specifically for cleanup in mojo.js.
var runLater = require("runlater")(20);
// called after 1 ms in batches of 20 synchronous methods.
// I.E: below runs in 2 batches of 20 (40).
for(var i = 40; i--;)
runLater(function () {
});