def get(self):
        """
        Returns the first possible value without order of calling the function.
        """
        if self.__curr_index == len(self.__thread):
            raise IndexError('The element doesn\'t exists')
        if not self.__event.is_set():
            self.__event.wait()
        self.__event.clear()
        res = self.__vals[self.__curr_index]
        self.__curr_index += 1
        return res

        Returns the first possible value without order of calling the function.
        
recipes/Python/577915_Future_decorator_pretty_pythonic/recipe-577915.py