MCPcopy Create free account
hub / github.com/python/cpython / add_cancelled

Method add_cancelled

Lib/concurrent/futures/_base.py:85–88  ·  view source on GitHub ↗
(self, future)

Source from the content-addressed store, hash-verified

83 self.event.set()
84
85 def add_cancelled(self, future):
86 with self.lock:
87 super(_AsCompletedWaiter, self).add_cancelled(future)
88 self.event.set()
89
90class _FirstCompletedWaiter(_Waiter):
91 """Used by wait(return_when=FIRST_COMPLETED)."""

Callers

nothing calls this directly

Calls 3

superClass · 0.85
add_cancelledMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected