You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

pragma-scheduler

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

pragma-scheduler

Smart scheduler implementation


Version published
Weekly downloads
27
increased by22.73%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

#Pragma Scheduler NPM version

This a smart scheduler implementation

  • First of all it always waits end of handler work and only then schedule next handler call in specified interval
  • It works using setTimeout not setInterval therefore it does not overflow event loop queue
  • You can specify start delay, interval and can stop scheduler any moment you want

##Usage To install just use NPM

npm install pragma-scheduler
var PragmaScheduler = require('pragma-scheduler'),
	counter = 0,
	scheduler = new PragmaScheduler(3000, 1000, function() {
		console.log(++counter + ' Mississippi');

		if (counter === 5){
			scheduler.stop();
		}
	});

scheduler.start();

Pragma Dudes wish you live long and prosper.

info@pragma-dudes.org

Keywords

FAQs

Package last updated on 21 Aug 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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc