9
是否可以“等待收益回报DoSomethingAsync()”
常规迭代器块(即“收益回报”)是否与“异步”和“等待”不兼容? 这样可以很好地说明我要做什么: async Task<IEnumerable<Foo>> Method(String [] Strs) { // I want to compose the single result to the final result, so I use the SelectMany var finalResult = UrlStrings.SelectMany(link => //i have an Urlstring Collection await UrlString.DownLoadHtmlAsync() //download single result; DownLoadHtmlAsync method will Download the url's html code ); return …