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

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!

favorited by:
Craig Jeffords Timothy Lynch Jr Paul Ross Jordan Bleu Edward Lichtman Dustin Ewers Benjamin Gavin Brian Robertson Joshua Doro Kevin Curtis William Schaeffer Ryan Holmes Caleb Autry Michael Duren Jason Cairol Adam Tegen Brett Allenstein Adam Kerr Christopher Ebbert Benjamin Sibley Dave Boulineau Will Boyer Bret Fynewever Drew Douglas Kyle Schroeder James McCollum Dave Smith John Martin YURSHIA XIONG Jason Von Ruden Spenser Austin Jacob Netz Matthew Ives Ross Larson Clay Hess Andy Bottom Elizabeth Groom