我需要知道如何同时运行2个异步函数,例如检查以下代码:
public async Task<ResponseDataModel> DataDownload()
{
ResponseDataModel responseModel1 = await RequestManager.CreateRequest(postData);
ResponseDataModel responseModel2 = await RequestManager.CreateRequest(postData);
//Wait here till both tasks complete. then return the result.
}
Run Code Online (Sandbox Code Playgroud)
这里我有2个CreateRequest()顺序运行的方法.我想并行运行这两个函数,并且在两个函数的末尾我想返回结果.我该如何实现这一目标?
c# async-await windows-runtime winrt-async windows-store-apps
有几种的Windows软件开发工具包UWP 这里。我想开始开发UWP应用程序,这让我选择SDK版本有点困惑。如果我使用Windows 10 SDK(10586)之类的SDK,这是否意味着我的应用仅适用于Windows 10 OS build 10586及更高版本?并不能与Windows 10 OS build 10240一起使用?