def joinall(threads):
    for t in threads:
        t.join(300)
        assert not t.isAlive(), "Thread %s hung" % t
Join threads with a 5-minute timeout, assert joins succeeded
dataset/ETHPy150Open mongodb/mongo-python-driver/test/utils.py/joinall