title: nodejs Async.each Nested loop Confusion
body: <p>i want to have two nested for loops</p>
  
  <pre><code>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")
  </code></pre>
  
  <p>Now i expect an output Like 
  {
  InnerLoopFinished
  OuterLoopFinished
  } according to List Size and</p>
  
  <p>process Finsished</p>
  
  <p>Bt what i get is 
  Process Finished at First
  and InnerLoop and Outerloop message depending upon loop size..</p>
  
  <p>Im process data in both loops so when control goes to print "final process" message i expect all my data is populated to an Object Before that and send it as a response which isnt achieved here</p>
  
  <p>I think imnt not clear about idea of working async.each..Can someone help me to achieve the desired output</p>