async await 成对出现。执行结果为: end async
static void Main(string[] args) { DoAsync(); Console.WriteLine("end"); Console.ReadLine(); } private static async Task DoAsync() { string ss = await ReturnAsync(); Console.WriteLine(ss); } private static async Task<string> ReturnAsync() { return await Task<string>.Run(() => { Thread.Sleep(5000); return "async"; }); }