Answer the question
In order to leave comments, you need to log in
How to correctly implement the task scheduler?
There is a certain array
I would like to make a function scheduler that will call it on a specific day present in the Days array, the ideas were to simply calculate the date closest to the current one and create a timeout for the required number of ms, but I think that there are more correct solutions similar task
let Days = [ 1, 7, 15, 28 ];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question