MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / main

Function main

1e_http_client/python/async.py:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14async def main():
15 async with aiohttp.ClientSession() as session:
16 tasks = []
17 for _ in range(50):
18 tasks.append(asyncio.ensure_future(fetch_person(session, URL)))
19
20 all_data = await asyncio.gather(*tasks)
21 for data in all_data:
22 print(summary(data))
23
24
25if __name__ == "__main__":

Callers 1

async.pyFile · 0.70

Calls 3

summaryFunction · 0.90
fetch_personFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected