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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.