def wait_for_state(self, state):
        while self.state != state:
            time.sleep(5)
            self.refresh()
Performs polling of CloudSearch to wait for the ``state``
dataset/ETHPy150Open darcyliu/storyboard/boto/cloudsearch/optionstatus.py/OptionStatus.wait_for_state