asyncio aiohttp progress bar with tqdm
问题 I'm attempting to integrate a tqdm progress bar to monitor POST requests generated with aiohttp in Python 3.5. I have a working progress bar but can't seem to gather results using as_completed() . Pointers gratefully received. Examples I've found suggest using the following pattern, which is incompatible with Python 3.5 async def definitions: for f in tqdm.tqdm(asyncio.as_completed(tasks), total=len(coros)): yield from f Working (albeit redacted) async code without the progress bar: def async