1.0.0 • Published 8 years ago
obento-loop v1.0.0
obento-loop
obento-loop keeps executing functions at regular intervals
Installation
Yarn:
yarn add obento-loopnpm:
npm install --save obento-loopExample
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
8 years ago