await or ayield
30 October 2010
I just watched Anders Hejlsberg’s PDC presentation “The Future of C# and VB”, which was mostly on the asynchronous programming extensions coming in the next version. It’s pretty powerful stuff and I wish I had it now, perhaps the CTP is good enough.
This stuff is as exciting as LINQ when it came out and as much a game changer for developers.
The new async capability really simplifies the hell hole of asynchronous programming with two new keywords: async and await. Watching the presentation, I wondered why they chose the keyword await and not ayield or just the existing keyword yeild. The feature is very much like the C# keyword yield in how your code flows and it’s relationship to IEnumerable processing.