Instantly share code, notes, and snippets.

@kennethreitz /t.py Secret
Created Sep 3, 2017

Embed
What would you like to do?
import asyncio
import requests
session = requests.AsyncSession()
async def _main():
rs = []
for _ in range(100):
rs.append(await session.get('http://httpbin.org/get'))
print(rs)
def main(*args):
return session.wrap(_main())
session.run(main)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment