更新时间:2021-11-28 02:39:56
捕获Task
,然后在OtherWork
完成后等待它:
Capture the Task
and then await it after OtherWork
is done:
async Task SomeTask()
{
var childTask = ChildTask();
//Then something we want to be done without waiting till "Child Task" finished
OtherWork();
await childTask;
}