def METHOD_NAME(self, timeout=None):
    timeout = timeout or self.timeout
    tt1 = time.time()
    while time.time() - tt1 < timeout:
        if self._ready():
            break
        else:
            time.sleep(0.5)