<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Taskrun on Dimitri Laaraybi</title>
    <link>https://www.dimitrilaaraybi.com/tags/taskrun/</link>
    <description>Recent content in Taskrun on Dimitri Laaraybi</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 18 Mar 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.dimitrilaaraybi.com/tags/taskrun/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Beware of Task.Run() !</title>
      <link>https://www.dimitrilaaraybi.com/blog/bewareoftaskrun/</link>
      <pubDate>Tue, 18 Mar 2025 00:00:00 +0000</pubDate>
      <guid>https://www.dimitrilaaraybi.com/blog/bewareoftaskrun/</guid>
      <description>&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;&#xA;&lt;p&gt;Hey all ! 🫡&lt;/p&gt;&#xA;&lt;p&gt;A little post to share some thoughts about the &lt;strong&gt;Task.Run()&lt;/strong&gt; method, and the problems you could encounter especially in a .NET API using a GlobalExceptionHandler. ❌&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-actually-happen-when-you-need-to-start-a-task-as-fire-and-forget-and-you-have-an-exceptionhandler-configured-globally-&#34;&gt;What actually happen when you need to start a Task as &amp;ldquo;fire and forget&amp;rdquo;, and you have an ExceptionHandler configured globally ?&lt;/h2&gt;&#xA;&lt;p&gt;This kind of case can happen frequently, for example if you need to await a particular business process, and start some tasks after that process that does not need to be awaited by the calling context.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
