title: Task unhandled exceptions
body: <p>I'm trying to understand what is going on with exceptions that are thrown within a task object and never handled.</p>
  
  <p>On MSDN it said that:</p>
  
  <blockquote>
    <p>If you do not wait on a task that propagates an exception, or access
    its Exception property, the exception is escalated according to the
    .NET exception policy when the task is garbage-collected.</p>
  </blockquote>
  
  <p>So I don't quite understand in what way those exceptions affect program flow. I thought that those exceptions should interrupt execution as soon as they are garbage-collected. But I can not design this behaviour. Within the following snippet the thrown exception doesn't show up.</p>
  
  <pre><code>// Do something ...
  Task.Run (()=&gt; {throw new Exception("Exception in the task!");});
  // Do something else
  </code></pre>
  
  <p>Please, can anyone explain how unhandled task exception are dealt with and how they affect program flow.</p>