摘要:
waithander就是用来阻塞当前线程的,然后通过set()方法放开namespace waithandler{ class Program { //static EventWaitHandle wait = new EventWaitHa... 阅读全文
摘要:
微软在发布VS2012的同时推出了C#5.0,其中包含了async和await代码如下: class Program { private static readonly Stopwatch watch = new Stopwatch(); ... 阅读全文