📜  运行异步方法并行c#代码示例

📅  最后修改于: 2022-03-11 14:49:04.251000             🧑  作者: Mango

代码示例1
public Task GetThingsAsync()
{
    var first = GetExpensiveThingAsync();
    var second = GetExpensiveThingAsync();

    return Task.WhenAll(first, second);
}