title: Wait Until another function finish
body: <p>I have a problem. Two function are called from one event almost on the same time. Function1 is doing some asynchronous staff  :</p>
  
  <pre><code>function1 (callback_Data){  
     //some other callbacks here  
  }
  
  function2 (){
  
  }
  </code></pre>
  
  <p>I want function2 to wait until all callbacks which are in function1 to finish and then to start.</p>