runlater

0.0.12 • Public • Published

runlater.js runs code asynchronously at a later time. This library is used specifically for cleanup in mojo.js. Build Status

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 () {
    
  });

Readme

Keywords

none

Package Sidebar

Install

npm i runlater

Weekly Downloads

2

Version

0.0.12

License

BSD-2-Clause

Last publish

Collaborators

  • architectd
  • crcn