method

join

join(*threads)
public

Waits for specified threads to terminate, and returns when one of the threads terminated.