def value(self):
        "Waits for value availability and raises or returns data."
        self.__mutex.acquire()
        if self.__error:
            raise self.__value
        return self.__value
Waits for value availability and raises or returns data.
recipes/Python/578151_affinitypy/recipe-578151.py