Socket
Socket
Sign inDemoInstall

deferred-interval

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

2

lib/interval.js

@@ -19,3 +19,3 @@ /* jshint node: true, strict: true */

this.timer = setTimeout(tick.bind(this), this.delay);
}.bind(this));
}.bind(this), this.ticks);
}

@@ -22,0 +22,0 @@

{
"name": "deferred-interval",
"version": "0.1.0",
"version": "0.1.1",
"description": "A set interval that defer the start of the next delay until the callback is executed.",

@@ -5,0 +5,0 @@ "main": "lib/interval.js",

@@ -24,4 +24,4 @@ # deferred-interval

var schedule = new Interval();
schedule.start(function (done) {
console.log('ping', Date.now());
schedule.start(function (done, ticks) {
console.log('tick number:', ticks);
done();

@@ -28,0 +28,0 @@ }, 10000);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc