obento-loop
v1.0.0
Published
obento-loop keeps executing functions at regular intervals
Downloads
5
Readme
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' ....