-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I'm not that familiar with this new AsyncSession object, but it looks to me like the async/await example doesn't actually perform those GET requests concurrently as you are awaiting for each one to return one by one. Should that example be this instead?
async def _main():
for future in asyncio.as_completed([session.get('http://httpbin.org/get') for _ in range(100)]):
print(await future)
szuliq and dgronskij
Metadata
Metadata
Assignees
Labels
No labels