在 .Net C# 中,有一个函数Task.WhenAll可以获取任务列表来等待它们。我应该在 python 中使用什么?我正在尝试对此做同样的事情:
Task.WhenAll
tasks = ... # list of coroutines for task in tasks: await task
c# python async-await python-asyncio
async-await ×1
c# ×1
python ×1
python-asyncio ×1