(self)
return self._state != _PENDING
Return True if the future is done.

        Done means either that a result / exception are available, or that the
        future was cancelled.
Return True if the future is done.
Return True if the future is done .
def done(self):
        """Return True if the future is done.

        Done means either that a result / exception are available, or that the
        future was cancelled.
        """
        return self._state != _PENDING
def done ( self ) : return self . _state != _PENDING