摘要: waithander就是用来阻塞当前线程的,然后通过set()方法放开namespace waithandler{ class Program { //static EventWaitHandle wait = new EventWaitHa... 阅读全文
posted @ 2018-05-20 17:00 birdhumen鸟人 阅读(1325) 评论(0) 推荐(0) 编辑
摘要: 微软在发布VS2012的同时推出了C#5.0,其中包含了async和await代码如下: class Program { private static readonly Stopwatch watch = new Stopwatch(); ... 阅读全文
posted @ 2018-05-20 16:56 birdhumen鸟人 阅读(196) 评论(0) 推荐(0) 编辑