摘要: 可见await会开新线程 async标志的函数为异步函数,异步函数内部,在进行await的时候会等待await后面一个线程运行结束 而第一次await的时候,异步函数就会跳过,执行主线程里异步函数之后的内容了 阅读全文
posted @ 2017-09-04 13:05 鸡毛巾 阅读(181) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ATLearn { /// /// Guid工厂 /// s... 阅读全文
posted @ 2017-09-04 11:18 鸡毛巾 阅读(523) 评论(0) 推荐(0) 编辑