The title says it all.
Check out the video here: http://channel9.msdn.com/posts/Charles/Jeffrey-Richter-and-his-AsyncEnumerator/
You can download the code here: http://Wintellect.com/PowerThreading.aspx
You can join the Yahoo Group for support here: http://tech.groups.yahoo.com/group/PowerThreading/
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using RSS
Really interesting.
Do you think there is a chance to see this as part of the next C# release?
The chance of this happenning is very slim. I presented this to the CLR team quite some time ago and while they liked it a lot they felt that having a method that returns IEnumerator and having "yield return" statements in the code felt unnatural and so they want to do something first class. This means chaning the CLR and having new language constructs. These changes will deffinitely not be in .NET 4.0 and I doubt that they will be in .NET 5.0. And so, while it would be nice for them to put something like this in .NET proper, it will be many years before they do. People need a solution that works today on .NET 2.0 and later and my AsyncEnumerator fills this bill nicely.
I think the way Jeffery thought is really new one as he's using synchronous means to utilize asynchronous. I think this may help us to think about how to use sync coding techniques for async programming.
got a transcript of it? ;-)