General Programming Discussion
seahorse
•
Now
•
100%
Is there any way to write an infinitely recursive function in JS without exceeding the call stack?
I wrote a Node script for work that takes 24 hours to complete (lots of 2 minute timeouts) and I'd like it to just restart at its end and begin again. I suppose I could just write a chron job for it on whatever VM we end up running it on if this isn't possible.
Comments 2