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

Method add_cancelled

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

Source from the content-addressed store, hash-verified

99 self.event.set()
100
101 def add_cancelled(self, future):
102 super().add_cancelled(future)
103 self.event.set()
104
105class _AllCompletedWaiter(_Waiter):
106 """Used by wait(return_when=FIRST_EXCEPTION and ALL_COMPLETED)."""

Callers

nothing calls this directly

Calls 3

superClass · 0.85
add_cancelledMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected