阅读背景:

了解多个configureawait(false)在单个异步方法中执行的操作

来源:互联网 

Consider this code:

考虑以下代码:

public async Task SomeMethodAsync(){
    //1. code here executes on the original context

    //for simplicity sake, this doesn't complete instantly 
    var result1 = await Method1Async().ConfigureAwait(false);

    //2. code here doesn't executes in the original context 
public async Ta



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: