Skip to content

ryaneghrari/schedule-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A package to continuously run a function with a delay.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published