1.0.0 • Published 6 years ago

obento-loop v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

obento-loop

obento-loop keeps executing functions at regular intervals

Installation

Yarn:

yarn add obento-loop

npm:

npm install --save obento-loop

Example

var loop = require('obento-loop');

var fc = function() {
  console.log('fc');
}
loop.add(fc);

// output at intervals of 40 milliseconds.
// 'fc'
// 'fc' ....