title: Dojo fetch, how to wait on two simultaneous async fetches?
body: <p>Hey guys, im not well versed in dealing with asynchronous design patterns, and im having a problem writing a script that does two async data fetches. </p>
  
  <p>Im using Dojo.data.api.Read.Fetch() to make two fetch() calls from seperate databases. The reulsts come back asynchronously. However, I have to cross reference the results, so i want my script to continue once BOTH async fetches are complete. I dont know how to do this, and therein lies the problem. </p>
  
  <p>I <em>am</em> aware of the fetch's <strong>onComplete</strong> field and how to use it, BUT the best case solution i see there is to call the second fetch in the onComplete of the first fetch. I would like to do these fetches <strong>at the same time</strong>. Is there a way to do this?</p>
  
  <p>Here's the current structure of my program for illustration purposes:</p>
  
  <p><code>
  this.dict1.fetch({query:"blahblahblah", onComplete: function(items) { <em>something here?</em> }});<br>
  this.dict2.fetch({query:"blahblahbleh", onComplete: function(items) { <em>or maybe something here?</em> }});<br>
  this.orMaybeDoSomethingAfterBothFetches()</code></p>
  
  <p>Any help would be greatly appreciated!</p>