Python Schoolby trefilov
Шаг 1 из 4+110 XP

asyncio.gather

Параллельный запуск задач.

gather

import asyncio
async def f(x): return x*2
asyncio.run(asyncio.gather(f(1), f(2), f(3)))  # [2,4,6]