nodejs Async.each Nested loop Confusion
问题 i want to have two nested for loops async.each(ListA, function(itemA,callback1){ //process itemA async.each(itemA.Children, function(itemAChild,callback1){ //process itemAChild callback1(); }), function(err){ console.log("InnerLoopFinished") } callback(); }),function(err){ console.log("OuterLoopFinished") } console.log("Process Finished") Now i expect an output Like { InnerLoopFinished OuterLoopFinished } according to List Size and process Finsished Bt what i get is Process Finished at First