def get_all(self):
        """
        Returns all the possible values and initialize them.
        """
        for t in self.__thread:
            t.join()
        
        if self.__exception is not None:
            raise self.__exception

        res = self.__vals
        
        # Get rid of everything
        self.__init_values__()
        
        return res

        Returns all the possible values and initialize them.
        
recipes/Python/577915_Future_decorator_pretty_pythonic/recipe-577915.py