title: C# - What happens to a Task that throws an exception but the caller method is already done?
body: <p>What will happen (and why) if the following <code>if</code> statement is satisfied, and <code>Bar()</code> throws an exception?</p>
  
  <pre><code>    async Task Foo()
      {
          Task&lt;object&gt; myTask = Bar();
          if (condition)
          {
              return;
          }
          else
          {
              await myTask;
              // ....
              return;
          }
      }
  </code></pre>
  
  <p>Will the exception be caught? By who?</p>