Correcting Common Async/Await Mistakes

How much do we really know about how async/await works in .NET?

In this session, we will analyze the inner-workings of .NET to understand what actually happens when we compile our async code!

We’ll learn how a few easy improvements to our async code can create huge performance gains!

Notes and comments

The .NET compiler turns every async method into a class that contains its own state-machine nested inside of a try/catch block. This means that our app-size increases by 100 bytes every time we create an async method, and that every async method could potentially swallow exceptions leading to unintended behavior in our apps.

Join me as we take an existing app and optimize its async code together, showing off the performance gains in exception handling, improved run-time speed, and smaller app size!

Language EN
Level Level 300
Technologies

dev

.NET Standard

.NET Core

Speaker

Brandon Minnick
Brandon Minnick

Brandon is a Developer Advocate at Microsoft where he gets to work closely with the developer community and help fellow mobile app and cloud developers make 5-star apps. An avid mobile app developer, Brandon loves to code and has contributed to an...

Details