repeated

0.0.0 • Public • Published

repeated

Reliable intervals.

Build Status

browser support

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)

/repeated/

    Package Sidebar

    Install

    npm i repeated

    Weekly Downloads

    0

    Version

    0.0.0

    License

    MIT

    Last publish

    Collaborators

    • juliangruber