Skip to content

easy to create a timer in javascript with a keyname and remove it with same keyname

Notifications You must be signed in to change notification settings

xhacker5000/timer-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

timer-manager

easy to create a timer in javascript with a keyname and remove it with same keyname

Usage

  • Install
npm install timer-manager --save-dev
  • createTimer
	
	var Timer = require('timer-manager');
	Timer.createTimer('testTimer' , 1000 , function(){

			//do something
			...

	})
  • removeTimer
	
	Timer.removeElement('testTimer');
	
	

Tips

you do not need to worry about same timer keyname, if timer pool have a same keyname , timer-manager will remove the timer before create;

About

easy to create a timer in javascript with a keyname and remove it with same keyname

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published