I complain about discuss this in a couple of articles.
us/magazine/jj aspx us/magazine/jj aspx
Why? Async calls are really 3 calls. 1) the initiator 2) the do-er 3) the return handler They don’t share the same call stack.
Who cares? Since they don’t share the same call stack you can’t… …return values using the return keyword …throw an exception –(DOH!!!)
Async & Await Async is all over the place in Windows Phone, Windows Store / WinRT, and Silverlight Async, Await, Task, Task help take the pain out of async programming. (New for Visual Studio 2012 &.NET 4.5)
How does async & await work?
Basically, async & await injects a lot of glue to knit the calls together.
Additional Reading Essential C# 5.0 by Mark Michaelis Great overview of the language
Additional Reading CLR via C# by Jeffrey Richter What’s going on under the hood of C# and the.NET Framework
The List. 1. Be humble 2. Object- orientation 3. Write less code 4. Value Types vs. Reference Types 5. Exceptions 6. Generics 7. Collections 8. IDisposable, using, & garbage collection 9. LINQ 10. Lambda Expressions 11. Async & Await