title: Write an Async method that will await a bool
body: <p>I would like to write a method that will <code>await</code> for a variable to be set to true.</p>
  
  <p>Here is the psudo code.</p>
  
  <pre><code>bool IsSomethingLoading = false
  SomeData TheData;
  
  public async Task&lt;SomeData&gt; GetTheData()
  {
     await IsSomethingLoading == true;
     return TheData;
  }
  </code></pre>
  
  <p><code>TheData</code> will be set by a Prism Event along with the <code>IsSomethingLoading</code> variable.</p>
  
  <p>I have a call to the <code>GetTheData</code> method, but I would like it to run async (right now it just returns null if the data is not ready.  (That leads to other problems.)</p>
  
  <p>Is there a way to do this?</p>