infinite-loop

0.2.2 • Public • Published

infiniteLoop

infinite loop in nodejs

easy to use:

var InfiniteLoop = require('infinite-loop');
  
var il = new InfiniteLoop();
  
//task you want to run infinitely
function addOne(n) {
  n ++;
  console.log(n);
}
 
//use add to add a task
//first argument should be a function, the rest should be the functions' argument
il.add(addOne, 26);
 
//use run to invoke the task
il.run();
 
//the api is chainable
il.add(addOne, 26).run();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    118
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    118
  • 0.2.1
    1
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i infinite-loop

Weekly Downloads

15

Version

0.2.2

License

BSD

Last publish

Collaborators

  • sepmein