<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wait_until_exit(self):
 """ Wait until all the threads are finished. """

        [t.join() for t in self.threads]

        self.threads = list()