Question:
I am trying to create a single progress bar that will be updated whenever an async task is done.I have the following code
I also tried using
tqdm.asyncio.tqdm.gather
My starting point was
Answer:
If you callself.pbar.update(1)
inside the run_scan
scan method after creating concurrent tasks, each task will update the pbar
for self. So your class should look like the followingIf you have better answer, please add a comment about this, thank you!