Skip to content

skayi/js-loop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

js-loop

npm npm

Flexible configuration of looping tool

Installation

npm install --save js-loop

Usage

import loop from "js-loop";

const loopInst = loop({
  run: yourFunction,
  args: arguments, which is using in yourFunction (not required)
  threshhold: 1000
});

Execute the loop instance

loopInst.start();

Cancel the loop instance

loopInst.cancel();

If execute a loop instance immediatly, provide second param true of the loop contructor.

const loopInst = loop({...}, true);

About

Flexible configuration of looping tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published