(self)
return self._result
Return the result this future represents.

        If the future has been cancelled, raises CancelledError.  If the
        future's result isn't yet available, raises InvalidStateError.  If
        the future is done and has an exception set, this exception is raised.
Return the result this future represents.
Return the result this future represents .
def result(self):
        """Return the result this future represents.

        If the future has been cancelled, raises CancelledError.  If the
        future's result isn't yet available, raises InvalidStateError.  If
        the future is done and has an exception set, this exception is raised.
        """
        if self._state == _CANCELLED:
            exc = self._make_cancelled_error()
            raise exc
        if self._state != _FINISHED:
            raise exceptions.InvalidStateError('Result is not ready.')
        self.__log_traceback = False
        if self._exception is not None:
            raise self._exception
        return self._result
def result ( self ) : if self . _state == _CANCELLED : exc = self . _make_cancelled_error ( ) raise exc if self . _state != _FINISHED : raise exceptions . InvalidStateError ( 'Result is not ready.' ) self . __log_traceback = False if self . _exception is not None : raise self . _exception return self . _result