MCPcopy Index your code
hub / github.com/python/cpython / cancelled

Method cancelled

Lib/concurrent/futures/_base.py:377–380  ·  view source on GitHub ↗

Return True if the future was cancelled.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 1

waitFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected