3 ms·
How would one await multiple coroutine/futures? EDIT: await asyncio.gather(fut1, fut2)
by lyschoening 11y ago
How would one await multiple coroutine/futures?
EDIT: await asyncio.gather(fut1, fut2)
- dcarp 11y agoWhy not: async asyncio.wait([fut1, fut2])
- thomasjames 11y agoThe async keyword is used in coroutine declarations, so it wouldn't be valid syntax.
- dcarp 11y agoMy bad... of course I wanted to write await asyncio.wait([fut1, fut2])