Click here to Skip to main content
15,881,413 members
Articles / General Programming / Threads

Await Tasks in C#4 using Iterators

Rate me:
Please Sign up or sign in to vote.
4.97/5 (30 votes)
29 Aug 2013CPOL14 min read 111.2K   1K   105  
Write synchronous-looking asynchronous methods without async/await in Visual Studio 2010.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) AirWatch, LLC
United States United States
Keith started programming in 8th grade in BASIC, then in Z80 (TRS-80) and 6502 (Apple II) assembly. In high school he disassembled Apple DOS and Basic to see how they worked and wrote a program to teach chess openings. At the University of Texas at Austin, Keith completed a newly-created Honors Program for entering CS students, then taught Pascal to other students before graduating in 1988 with a Bachelor of Science in Computer Science, with only three other students receiving the same degree. (Prior to that year, UT had offered only a BA for CS students.) He completed formal education with a Master of Computer Science degree from the University of Virginia.

Keith has worked with many different companies, often on a contract/consulting basis, in C++, Smalltalk, Java, and C#, developing applications for the desktop, client server, enterprise integration, and finally for the web. He currently enjoys his job at AirWatch building integration and web components for Mobile Device Management.

Passionate about software development, Keith's main non-work interests are in language design, compiler construction, and framework development. He also enjoys chess and jogging. Keith lives in Atlanta, GA with his wife and young son.

Comments and Discussions