This is the Task Schedular project inspired by Runescape Private Server design for node.js It's very easy to start running tasks in the background of your node application
Here's how to run the task First make sure to add this at the top
const TaskManager = ;
Then anywhere in your node application you can submit a task by doing this
TaskManager;
If you ever need the name of the task inside your method you can specify it by doing this
TaskManager;
There's five different mearsurements of time you can specify
TaskManagerTimeUnitsMILLISECONDSTaskManagerTimeUnitsSECONDSTaskManagerTimeUnitsMINUTESTaskManagerTimeUnitsHOURSTaskManagerTimeUnitsDAYS
Also there's three different States the task can be in
TaskManagerSTATEONLINE - keeps runningTaskManagerSTATEOFFLINE - stops runningTaskManagerSTATEERROR - stops the task and says which task ran into an error