.NET 4.5的async/await真是个神奇的东西,巧妙异常以致我不禁对其实现充满好奇,但一直难以窥探其门径.不意间读了此篇强文<Asynchronous Programming in C# using Iterators>,犹如醍醐灌顶,茅厕顿开,思路犹如尿崩.美玉不敢独享,故写此篇,将所学中一些思考与诸君共享,期抛砖引玉,擦出一些基情火花…… 强文<Asynchronous Programming in C# using Iterators>出自大牛,大牛眼界高远.故文中…
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Threading; using System.Threading.Tasks; namespace TestApp { class Program { static void Main(string[] args) { Task<string> task = C…