【发布时间】:2013-04-22 19:53:18
【问题描述】:
以下不是多余的吗?
await blob.CopyToBlobAsync(newBlob).
ContinueWith((t) => { if (t.IsFaulted) throw t.Exception; });
好像没有ContinueWith调用一样,直接抛出异常?
什么时候可以使用 continueWith 而不是等待任务?
下面是一样的吗?
await myTask.ContinueWith(t => {'do something with the task t'});
和
await myTask;
'do something with the task MyTask'
【问题讨论】:
标签: c# async-await