How to check for threads being finished?

Chris Angelico rosuav at
Fri Jul 5 19:11:09 CEST 2013

On Sat, Jul 6, 2013 at 2:59 AM, Steven D'Aprano
<steve+comp.lang.python at> wrote:
> I then block until the threads are all done:
> while any(t.isAlive() for t in threads):
>     pass

Using the threading module, I assume. Is there any reason you can't
simply join() each thread in succession?


More information about the Python-list mailing list