mercredi 15 avril 2015

In Node.js, is setTimeout reliable?

I need to perform many "setTimeouts" 60 seconds. Basically, I'm creating a database record, and 60 seconds from now, I need to check whether the database record was changed.


I don't want to implement a "job queue" since it's such a simple thing, and I definitely need to check it around the 60 second mark.


Is it reliable, or will it cause issues?


Aucun commentaire:

Enregistrer un commentaire