Socket
Book a DemoInstallSign in
Socket

repeated

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

repeated

Reliable repeated events / intervals.

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

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)

Keywords

timer

FAQs

Package last updated on 19 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts