Home | History | Annotate | Download | only in futures

Lines Matching defs:CANCELLED

19 # The future was cancelled by the user...
20 CANCELLED = 'CANCELLED'
28 CANCELLED,
36 CANCELLED: "cancelled",
37 CANCELLED_AND_NOTIFIED: "cancelled",
49 """The Future was cancelled."""
207 cancelled). If any given Futures are duplicated, they will be returned
272 cancelled.
276 ALL_COMPLETED - Return when all futures finish or are cancelled.
280 futures that completed (is finished or cancelled) before the wait
293 if not f.cancelled() and f.exception() is not None):
351 Returns True if the future was cancelled, False otherwise. A future
352 cannot be cancelled if it is running or has already completed.
358 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
361 self._state = CANCELLED
367 def cancelled(self):
368 """Return True if the future was cancelled."""
370 return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]
378 """Return True of the future was cancelled or finished executing."""
380 return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]
393 argument when the future completes or is cancelled. The callable
396 cancelled then the callable will be called immediately. These
400 if self._state not in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]:
416 CancelledError: If the future was cancelled.
422 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
429 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
449 CancelledError: If the future was cancelled.
455 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
462 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
475 If the future has been cancelled (cancel() was called and returned
479 If the future was not cancelled then it is put in the running state
487 False if the Future was cancelled, True otherwise.
494 if self._state == CANCELLED: