Behind the Scenes

The act of suspending and resuming an asynchronous method upon evaluation of an await expression is quite tricky. In this section, we take a look behind the scenes of asynchronous methods and await expressions to learn how the compiler deals with resuming methods at the right point, saving state, exception handling blocks, and more.

Get C# 5.0 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.