title: Break from jquery for loop when doing an ajax call return error
body: <p>Have a look at the code below. The question is simple , how do I break from this for loop if the method  findUserInfo ajax code returns an error. In short how can I break from this for loop whenever I wish to ? Is is because ajax call is asynchronous ?</p>
  
  <pre><code> jQuery.each(d, function() {
      findUserInfo(this);
   });
  
  function findUserInfo(userID){
  
  
  var req = $.ajax({
  url: "http://twitter.com/users/show.json?suppress_response_codes&amp;id=xx!5@x!!x",
  dataType : "jsonp"
  
  });
  
  req.success(function(msg) {
      console.log('Yes! Success!');
  
  });
  
  req.error(function(msg) {
      console.log('Error');
  });
  
  
  }   
  </code></pre>