1.0.1 • Published 4 years ago
js-loop v1.0.1
js-loop
Flexible configuration of looping tool
Installation
npm install --save js-loopUsage
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);1.0.1
4 years ago