async def download(href_list): tasks = [] for href in href_list: t = asyncio.create_task(download_one(href)) tasks.append(t) break await asyncio.wait(tasks)