标签:wait c# blog current top read pre logs run
#region Async、Await static void Async() { Async1(); Thread.Sleep(1200); Console.WriteLine("Main Stop,Thread Id:" + Thread.CurrentThread.ManagedThreadId); } static async void Async1() { await Task.Run(() => { Thread.Sleep(1000); Console.WriteLine("Async Stop,Thread Id:" + Thread.CurrentThread.ManagedThreadId); }); } #endregion
标签:wait c# blog current top read pre logs run
原文地址:http://www.cnblogs.com/zxxxx/p/7400495.html