Session Spotlight
Correcting Common Async/Await Mistakes in .NET 8
async
dotnet
.net
C#
We will start off by looking at the compiler-generated IL code for an async method. Many developers are unaware that the compiler turns every async method into a class, and that class is a fully-functional state-machine! To make matters even more complicated, the compiler nests its auto-generated state-machine inside of a try/catch block that can conceal exceptions. This can lead to hidden bugs in our code and make it difficult to troubleshoot. We'll then zoom-out and complete a live-coding example that contains common asynchronous programming mistakes. We'll make the proper optimizations in a live demo, and show off the performance gains in both speed and app size.
Prerequisites
C# experience highly recommended!