Skip to main content

Async Await Internals: Understand the Async State Machine from a Memory Perspective

Event:Advanced Developers Conference 2020
Type:Talk
Date:October 12, 2020
Duration:1h
Location:Munich, Germany
Language:German

In this talk, we explore the internals of async/await from a memory perspective, examining how the compiler transforms async methods into state machines and how this state machine behaves during execution from a memory management point of view.

Event Details

Since its official release with .NET Framework 4.5, async/await has become one of the most commonly used features in .NET development. This talk dives deep into understanding how the compiler transforms async methods into state machines. We'll take a look at how it looks like when translated back to C# code and debug through it, and additionally examine memory snapshots to understand how it behaves during execution. Through all this, we'll learn about the memory implications and performance characteristics of async/await.

More information