in tools.py [0:0]
def get_result(self, task_id): with self._condition: while task_id not in self._result_dict: self._condition.wait() return self._result_dict.pop(task_id)