$t->join
t
Waits for a thread to end and when it does, returns any exit values from the thread. Blocks until the thread has ended, unless the thread has already terminated.
Copyright © 2001 O'Reilly & Associates. All rights reserved.