A
A
Artem2021-07-06 14:26:45
Node.js
Artem, 2021-07-06 14:26:45

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

1 answer(s)
D
Dima, 2021-07-06
@Kp18

cron and backend)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question