def wait(self, timeout=None):
        """
        Wait for events.
        """
        try:
            if timeout:
                gevent.sleep(timeout)
            else:
                while True:
                    gevent.sleep(1000)
        except (__HOLE__, SystemExit, Exception):
            pass
dataset/ETHPy150Open iancmcc/ouimeaux/ouimeaux/environment.py/Environment.wait