<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(self, *, timeout=None):
 """Block until all the jobs in the group have finished or until the timeout expires. Parameters: timeout(int):
 The maximum amount of time, in ms, to wait. Defaults to 10 seconds. """

        for _ in self.get_results(block=True, timeout=timeout):  # pragma: no cover
            pass