Skip to content
0:00 / 0:00

#asyncawait#c##.net8

Correcting Common Async/Await Mistakes in .NET 8 - Brandon Minnick - Copenhagen DevFest 2023

NDC Conferences

230K subscribers • 110 videos on Hallway • Conference channel

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Brandon Minnick, Developer Advocate

Advanced. Deep dive for people who know the field.

136K views3 years ago2 recommendations

Programming languagesSystems programmingC# and .NETConcurrency and parallelismPerformance and optimization

Brandon Minnick analyzes how the .NET compiler handles async/await and demonstrates how to optimize asynchronous C# code for better performance.

This talk was recorded at NDC's Copenhagen Developer's Festival. #cphdevfest #ndcconferences #dotnet #softwaredeveloper #csharp Attend the next NDC conference near you: ndcconferences.com cphdevfest.com/ Subscribe to our YouTube channel and learn every day: youtube.com/@NDC Did you know that the .NET compiler turns our async methods into classes? And that .NET adds a try/catch block to each of these classes, potentially hiding thrown exceptions? It's true! In this session, we will learn how to best use async/await in C# by analyzing how .NET compiles our async code. Join me as we take an existing app and optimize its async code together, showing off performance gains, better exception handling, improved run-time speed, smaller app size and more using the latest tools in C#12 + .NET 8!

Why it's here

2 people recommend this

What people say. Recommended for its excellent, deep-dive details on async allocations and best practices in C#.

u/ChanceNo2361in r/dotnet • Recommends

On “did you know every async method you write allocates a heap object you never see?”

Yes: this video has excellent details about this and other async awesomeness. It changed the way I code and will still have relevance after runtime async is introduced Correcting Common Async/Await Mistakes - NDC - Brandon Minnick

u/Transcender49in r/dotnet • Recommends

On “Give me your async/await gotchas”

link to this video check out this video

u/fuzzius_navusin r/dotnet • Mentions

On “What should my tech stack be for a cross-platform native app that needs to access a remote SQL database?”

This is a sample app for fetching top articles from Hacker News (from this NDC talk link to this video It's an app that sends requests to an API. The API (not part of the app) handles the database interactions. https://github.com/brminnick/AsyncAwaitBestPractices?ref=codetraveler.io