<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_on_receipt(self):
 """ Wait until we receive a message receipt. """

        with self.receipt_condition:
            while not self.received:
                self.receipt_condition.wait()
        self.received = False