method

join

join()
public

Waits until the queue of futures is empty and all threads have exited.