Return True if the future was cancelled.
(self)
| 375 | return True |
| 376 | |
| 377 | def cancelled(self): |
| 378 | """Return True if the future was cancelled.""" |
| 379 | with self._condition: |
| 380 | return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED] |
| 381 | |
| 382 | def running(self): |
| 383 | """Return True if the future is currently executing.""" |