Skip to content

Instantly share code, notes, and snippets.

@chrismatheson
chrismatheson / gist:2895004
Created June 8, 2012 11:04
callbacks in loops
var processQueue = function(data) {
if(typeof data === 'undefined'){
//start of queue
data = new Object({});
}
util.isError(data){
console.error('error sending msg');
console.error(util.inspect(data));
//process.exit(1);