title: Node.js - asynchronous method call issue
body: <p>I am building an app using node.js and wanted to confirm an issue regarding modules and node's asynchronous nature. If I have a module such as:</p>
  
  <pre><code>var email_list = function() {
      //perform some database query or calculation
  }
  
  exports.email_to = function() {
  
      email_list.forEach(function(email) {
          console.log(email);
      });
  
  };
  </code></pre>
  
  <p>And in another file, I call my <code>email_to</code> method, does the function<code>email_list</code> get called before my <code>email_to</code> function gets called? If not, is there a way to guarantee that the <code>email_to</code> function gets called after the <code>email_list</code> function? </p>
  
  <p>Thanks in advance~</p>