Return True if the future was cancelled.
(self)
| 381 | return True |
| 382 | |
| 383 | def cancelled(self): |
| 384 | """Return True if the future was cancelled.""" |
| 385 | with self._condition: |
| 386 | return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED] |
| 387 | |
| 388 | def running(self): |
| 389 | """Return True if the future is currently executing.""" |