1.0.2 • Published 4 years ago
schedule-function v1.0.2
schedule-function
About
schedule-function
allows you to rerun a function once it completes. You can also pass a delay (in seconds) to wait before re-running the function. Lastly you can pass an onComplete
function which will run each time the run
function is completed.
Quick start
npm i schedule-function
const fschedule = require('schedule-function');
- Call schedule function you want to continuously run.
const fscheduler = require('schedule-function');
fscheduler.schedule({
delay: 10, //seconds
run: () => { console.log('function I want to run continuously') },
})
Help
Contact Ryan Eghrari, if you have any problems.