<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):
 """ Blocking wait for task status. """

        if self._thread is None:
            return
        self._thread.join(timeout=timeout)