1.0.2 • Published 4 years ago

schedule-function v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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

  1. npm i schedule-function
  2. const fschedule = require('schedule-function');
  3. 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.

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago