parameters: (self)
return_statement: return self._state == _CANCELLED
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."""
          return self._state == _CANCELLED
function_tokens: def cancelled ( self ) : return self . _state == _CANCELLED