且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

一个任务里抛出异常 - "等待" VS等待()

更新时间:2022-12-08 22:42:13

我们的目标是让它看起来/像同步版本行为。乔恩斯基特做了伟大的工作,在他的Eduasync系列解释这一点,特别是这篇文章:

The goal is to make it look/act like the synchronous version. Jon Skeet does a great job explaining this in his Eduasync series, specifically this post:

http://$c$cblog.jonskeet.uk/2011/06/22/eduasync-part-11-more-sophisticated-but-lossy-exception-handling/