在C#中“回程等待”的目的是什么?
public async Task<SomeResult> DoSomethingAsync(){ // Some synchronous code might or might not be here... // return await DoAnotherThingAsync();}
public Task<SomeResult> DoSomethingAsync(){ // Some synchronous code might or might not be here... // return DoAnotherThingAsync();}
return await
Task<T>
DoAnotherThingAsync()
return await
await
波斯汪
肥皂起泡泡
跃然一笑