Visual Studio Async CTP and Silverlight for the rest of us…
Today at PDC 2010, they announced Asynchronous functions in C# and VB.NET. So what exactly does that mean? I’ll give you the definition first:
Asynchronous operations are methods and other function members that may have most of their execution take place after they return. In .NET the recommended pattern for asynchronous operations is for them to return a task which represents the ongoing operation and allows waiting for its eventual outcome.
You completely understand right? Me neither! I have been reading about it and I wanted to share my understanding of it.
Imagine an application (like the Netflix example) with a lot of data. You would experience the following behavior using a synchronous application.
- The program becomes non-responsive.
- You cannot move, resize the window while data is loading.
- You cannot hit the Close button to end the program while data is loading.
We can definitely do better with asynchronous application with the new tools Microsoft provided for us.
Let’s get started by installing the Visual Studio Async CTP. I will show you how to install it, walking you through the example application and then Tips/Tricks that will save you some time when getting started.
Read More from: Original Source
Post Contributed by: Michael Crump
Thursday, October 28, 2010
Michael is a Contributor of this site. He is an MCPD that has been involved with computers in one way or another for as long as he can remember, but started professionally in 2002. He has worked at Fortune 500 companies where he gained experience in embedded systems design and software development to systems administration and database programming, and everything in between.
He shares his findings in his personal blog: http://michaelcrump.net and he also tweets at: @mbcrump.