Skip to content

Is it bad practice to use setInterval? #188

Answered by titanism
omar-dulaimi asked this question in Q&A
Discussion options

You must be logged in to vote

We have no idea what Client is in your code example and we don't know what your jobs are actually doing. Please provide more details. There is nothing wrong with using setInterval. High CPU and memory is a result of CPU intensive and memory intensive operations. setInterval is merely a timer and is not the culprit.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by titanism
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants