Baggz/Amanda — pull request #32 by schloerke (2012-03-03 06:25:22+00:00)
Title: asyncEach

Unfortunately, javascript doesn't do tail recursion. :-(. When performing daisy-chained functions on large data values, it causes stack overflow errors quickly.

This change fires each async function when it is added to the queue. When each function is complete, it tries to perform the overall callback.

Keeping the fail fast style, if an error occurs, it performs the overall callback immediately and returns early in all subsequent item callbacks.

Best,
Barret