Session Spotlight

Brandon Minnick

Camp Counselor

Correcting Common Async/Await Mistakes in .NET 8

Event Logo

Tuesday, July 30, 2024 - 9:00 PM UTC, for 1 hour.

Regular, 60 minute presentation

Room: African 50


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.


C# experience highly recommended!

favorited by:
Timothy Lynch Jr Edward Lichtman Joshua Doro Kevin Curtis Caleb Autry Jason Cairol Brett Allenstein Adam Kerr Dave Boulineau James McCollum John Martin YURSHIA XIONG Matthew Ives Ross Larson Andy Bottom Elizabeth Groom