I have the following code:
import asyncio
async def test_1():
res1 = await foo1()
return res1
async def test_2():
res2 = await foo2()
return res2
if __name__ == '__main__':
print(asyncio.get_event_loop().run_until_complete([test_1, test_2]))
But the last call to .run_until_complete() is not working. How can I perform an async call to multiple tasks using .run_until_complete()?