

def wait(self, timeout=None):
    self.evt.wait(timeout=timeout)
    if (not self.has_value()):
        raise TimeoutError('Timed out waiting for value!')
    return self.res

dataset/ETHPy150Open ejeschke/ginga/ginga/misc/Future.py Future.wait/original