Asynchronous programming in C# using async and await

You’re using your favorite desktop application when suddenly it freezes. You can’t interact with it and the UI won’t refresh,until all of a sudden everything goes back to normal. Sounds familiar? I’m sure this has happened to you before. What most likely happens in such cases is that the application performs a lengthy operation using the UI thread, which in turn isn’t available to take care of the UI until the operation ends.

To provide a responsive UI experience, potentially lengthy operations should be done asynchronously, on a separate thread.

http://tech.pro/tutorial/1180/asynchronous-programming-in-c-using-async-and-await

Advertisements
By Sriramjithendra Posted in C#.NET

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s