1.0.0 • Published 6 years ago
obento-loop v1.0.0
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' ....
1.0.0
6 years ago