code: def wait_on_receipt(self):
          
          with self.receipt_condition:
              while not self.received:
                  self.receipt_condition.wait()
          self.received = False
docs: Wait until we receive a message receipt.