repeated
v0.0.0
Published
Reliable repeated events / intervals.
Downloads
2
Readme
repeated
Reliable intervals.
Usage
var repeat = require('repeated');
var ticks = 0;
repeat(1000)
.on('tick', function () {
console.log('tick');
if (++ticks == 10) this.end();
})
API
repeat(interval)
Return a new repeater that emits tick
events every interval
milliseconds.
repeated
tries to stay in time even when the event loop is busy.
repeat#end()
Stop repeating.
Installation
With npm do
$ npm install repeated
License
(MIT)