title: Wait until a delegate is called
body: <p>I have an asynchronous class with a <code>StartProcessing()</code> method, that raises an <code>int ResultReady()</code> event when it has finished processing. <code>StartProcessing()</code> takes very little time.</p>
  
  <p>I want to call this class synchronously. My pseudo-code should be something like:</p>
  
  <ol>
  <li><p>Call StartProcessing() </p></li>
  <li><p>Wait/sleep until result is ready</p></li>
  <li><p>Return result</p></li>
  </ol>
  
  <p>What design pattern is best for this? Can you please point me to a code example?</p>