C# Tutorials - Herong's Tutorial Examples - v3.32, by Herong Yang
What Is Async Feature?
A quick introduction is provided on the Async feature introduced in C# 5. Async feature is designed to help asynchronous programming to make applications more responsive in activities that are potentially slow or delayed.
What Is Async Feature? Async feature is a new feature introduced in C# 5. Async feature is designed to help asynchronous programming to make applications more responsive in activities that are potentially slow or delayed. Without asynchronous programming consideration, such applications
For example, if you have GUI application with thread to accesses the web, you can make the web request asynchronously and put the thread in suspended mode while waiting for the response from the web. This frees up CPU resources for other threads to respond to user's UI activities with better response time.
According to C# 5 specification, Async Feature uses two keywords:
Below is a diagram provided by Microsoft showing the execution flow of an async function with an await expression:
Table of Contents
Logical Expressions and Conditional Statements
Visual C# 2010 Express Edition
C# Compiler and Intermediate Language
Compiling C# Source Code Files
MSBuild - Microsoft Build Engine
GetStringAsync() Method in HttpClient Class
GetStringAsync() Method Example Program
Watching Asynchronous Operation Execution Status
"await" Expression and Child Thread
"await" Expression Thread Example
System.Diagnostics.FileVersionInfo Class
WPF - Windows Presentation Foundation