title: Pattern to use to handle a event with awaitable method in c#
body: <p>Like the subject of this post, anybody can suggest me the best way to handle an event fired with an async method in c#?</p>
  
  <p>Example</p>
  
  <pre><code>// Before:
  MyPosClass.EventBluetoothCommunicationCompleted+= (sender, ErrorCode) =&gt;
              {
                  // implementation on event fired
              };
  
  // After:
  var result = await MyPosClass.WaitBluetoothCommunicationCompleted();
  </code></pre>
  
  <p>I noticed this answer
  <a href="https://stackoverflow.com/questions/20252696/await-async-with-event-handler">Await async with event handler</a>
  Can it be a solution?</p>
  
  <p>Thank you!
  Lewix</p>