title: For loop in callback. Blocking?
body: <pre><code>//defining schemas, models, db connections, etc..
  
  http.createServer(function (req, res) {
    // some irrelevant stuff..
  
    Model.find({name : regex}).exec(function (err, results) {  
  
      var localArray = []; 
  
      for (var i = 0, len = results.length; i &lt; len; ++i) {
        localArray.push(results[i].name);
        localArray.push(results[i].id);
      };  // is this for loop blocking?
  
    // some more irrelevant stuff..
    });
  }).listen(8080);
  </code></pre>
  
  <p>My callback has a for loop which can be long (results.length = 100 sometimes).</p>
  
  <p>Have I written blocking code? If yes, how can I make it non-blocking?</p>