摘要: 创建一个本身抛出异常、子任务抛出异常、子任务的子任务抛出异常的Task。Task pt = new Task(() =>{ Task.Factory .StartNew(() => { throw new Exception("ex 1"); }, TaskCreationOptions.AttachedToParent); Task.Factory .StartNew(() => { Task.Factory .StartNew(() =... 阅读全文
posted @ 2012-05-29 13:02 Jusfr 阅读(1800) 评论(0) 推荐(0) 编辑