visionmedia/batch — pull request #3 by burcu (2012-06-28 08:49:15+00:00)
Title: Be able to get notifications as a job finishes

Provides support for setting a notification callback. As soon as a job finishes, already set notification callback is called.

var batch = new Batch();

...

batch.end(console.log);
batch.notify(function(i, result){
// result of the ith job
});