(cc_list: list[str])
| 35 | return asyncio.run(supervisor(cc_list)) # <2> |
| 36 | |
| 37 | async def supervisor(cc_list: list[str]) -> int: |
| 38 | async with AsyncClient() as client: # <3> |
| 39 | to_do = [download_one(client, cc) |
| 40 | for cc in sorted(cc_list)] # <4> |
| 41 | res = await asyncio.gather(*to_do) # <5> |
| 42 | |
| 43 | return len(res) # <6> |
| 44 | |
| 45 | if __name__ == '__main__': |
| 46 | main(download_many) |
no test coverage detected