title: Transform my Thread code to Task
body: <p>I want to upgrade my code replacing Thread with Task. Considering the example below:</p>
  
  <pre><code>new Thread(()=&gt;{
    ...
    Thread.Sleep(5000);
    ...
  }
  </code></pre>
  
  <p>After introducing Task:</p>
  
  <pre><code>Task.Run(async ()=&gt; {
    ...
    await Task.Delay(5000);
    ...
   }
  </code></pre>
  
  <p>However, this new lambda will swallow the exceptions. I want to preserve the exception handling mechanism. Can you offer a better transformation? </p>