В настоящее время у меня есть
Код: Выделить всё
async with TaskGroup() as tg:
r1 = tg.create_task(foo())
r2 = tg.create_task(bar())
res = [r1.result(), r2.result()]
Подробнее здесь: https://stackoverflow.com/questions/752 ... p-response
Код: Выделить всё
async with TaskGroup() as tg:
r1 = tg.create_task(foo())
r2 = tg.create_task(bar())
res = [r1.result(), r2.result()]