title: how to break async.js each loop?
body: <p>Hi i am using <a href="https://github.com/caolan/async" rel="noreferrer">async</a> module of node.js for implementing a for loop asynchronously.</p>
  
  <p>My question is: how to break the loop execution and get out of the loop? I tried giving <code>return</code> , <code>return false</code> but no luck. </p>
  
  <p>Here is the sample code:</p>
  
  <pre><code>async.until( 
  
      function() { return goal; },
  
      function(callback) {
  
          async.each(_rules, 
  
              function(rule,callback) {
  
                  var outcome = true;
                  .... some code ....
                  if(changes){ 
                        console.log("hi");
                        return false;// HERE I NEED TO BREAK
                  } 
                  else
                  callback();
  
              }, 
  
              function(err){  }
          );
  
          if (!changes || session.process)                
              goal = true;
  
          callback();
      },
  
      function(err){ callback(session); }     
  );
  </code></pre>