Skip to content

jacksirens/waitting-execut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

waitting-execut

Install

npm install waitting-execut

Simple timeout handling:

let timer = new WaittingExecut({
	waitTime: 1000,
	callBack: () => console.log(1)
})

you can trigger by yoourself:

timer.execut();

also you can cencel it:

timer.abort();

or reset:

timer.reset();

if you want to change another timer and cancel your last timer:

timer.refresh({
	waitTime: 1000,
	callBack: () => console.log(2)
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published