1. 程式人生 > >Asynchronous Programming with async and await (C#)用async和await實現非同步程式設計

Asynchronous Programming with async and await (C#)用async和await實現非同步程式設計

You can avoid performance bottlenecks and enhance the overall responsiveness of your application by using asynchronous programming. However, traditional techniques for writing asynchronous applications can be complicated, making them difficult to write, debug, and maintain.

你可以用個使用非同步程式設計來避免表現瓶頸跟提供整體的能力,然而傳統的技術來寫非同步應用非常負責,很難寫,除錯,維護。

Visual Studio 2012 introduced a simplified approach, async programming, that leverages asynchronous support in the .NET Framework 4.5 and higher as well as in the Windows Runtime. The compiler does the difficult work that the developer used to do, and your application retains a logical structure that resembles synchronous code. As a result, you get all the advantages of asynchronous programming with a fraction of the effort.

vs2012 提供了一個簡單的非同步程式設計方法,利用.NEt4.5以及以上的版本支援的非同步,編譯器完成了開發者的複雜工作,你的應用保持同步的架構即可,然後你將花費少的經歷來獲得非同步的優勢

This topic provides an overview of when and how to use async programming and includes links to support topics that contain details and examples.

這個文章提供了一個整體的介紹關於什麼時候以及怎麼使用非同步程式設計。