substack/node-seq — pull request #24 by FugueNation (2011-11-24 10:36:08+00:00)
Title: Wrapped the action callback in a nextTick to avoid stack overflows

While doing a parEach for a few hundred tasks I got a stack overflow at about task 100. It's actually the third time it happened to me (with other code), so as I had done previously I put a nextTick in my seq callback, but then realized that on a live server it's too easy to get an unchecked large dataset that can kill a server by stack overflow, so I moved nextTick into the seq library itself.