parameters: (self)
docstring: Return True if the future was cancelled.
docstring_summary: Return True if the future was cancelled.
docstring_tokens: Return True if the future was cancelled .
function: def cancelled(self):
          """Return True if the future was cancelled."""
          with self._condition:
              return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]
function_tokens: def cancelled ( self ) : with self . _condition : return self . _state in [ CANCELLED , CANCELLED_AND_NOTIFIED ]