标签: python asynchronous async-await python-asyncio
基本上,我有一个 list[Coroutine[Any, Any, str]],我希望它们并行运行并以相同的顺序返回它们的值(作为 list[str])。
list[Coroutine[Any, Any, str]]
list[str]
在 javascript 中,我会使用 Promise.all 来等待数组中的所有 Promise。 我如何在 python 中重新描述这种行为?
Promise.all