How do you prevent memory leaks from setInterval in long-running processes?
If the callback holds a reference to a growing structure, the interval keeps it alive forever. What's your standard pattern for intervals that touch request-scoped data?
10
0 comments