MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / download_many

Function download_many

20-executors/getflags/flags3_asyncio.py:108–115  ·  view source on GitHub ↗
(cc_list: list[str],
                  base_url: str,
                  verbose: bool,
                  concur_req: int)

Source from the content-addressed store, hash-verified

106 return counter
107
108def download_many(cc_list: list[str],
109 base_url: str,
110 verbose: bool,
111 concur_req: int) -> Counter[DownloadStatus]:
112 coro = supervisor(cc_list, base_url, verbose, concur_req)
113 counts = asyncio.run(coro) # <14>
114
115 return counts
116
117if __name__ == '__main__':
118 main(download_many, DEFAULT_CONCUR_REQ, MAX_CONCUR_REQ)

Callers

nothing calls this directly

Calls 2

supervisorFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected