07 2012 档案

摘要:Actionaction=newAction(()=>{Thread.Sleep(5000);});varAsync=Observable.FromAsyncPattern(action.BeginInvoke,action.EndInvoke);Observable.Timeout(Async.Invoke(),DateTimeOffset.Now.AddSeconds(3)).ObserveOnDispatcher().Subscribe(it=>{MessageBox.Show("执行完毕");},ex=>{MessageBox.Show(" 阅读全文
posted @ 2012-07-10 15:49 therockthe 阅读(350) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示