<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cancelled(self):
 """Return whether this future was successfully cancelled."""

        return self._state == self.S_EXCEPTION and isinstance(self._result, Cancelled)