摘要: 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 阅读(361) 评论(0) 推荐(0)