title: How to make Meteor methods synchronous?
body: <p>I need a way for a meteor call to be synchronous so that when a call is run, the code waits for a result to be done so it can continue to the next line of code on the client.</p>
  
  <p>for example:</p>
  
  <pre><code>clientFunction = function(){
  
      Meteor.call('serverFunction', function(err,result){})//&lt;--so when this gets a result and    
                                                      //is stored in a session variable
      var doSomeThing = Session.get('whatever') &lt;-- so that your able to use it here
  }
  </code></pre>
  
  <p>I've tried using a while loop to prevent anything from happening until a value is returned, but it seems like it runs after the clientFunction thus throwing it to its demise </p>
  
  <p>any help would be appreciated</p>