MCPcopy Index your code
hub / github.com/RustPython/RustPython / add_cancelled

Method add_cancelled

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

Source from the content-addressed store, hash-verified

89 self.event.set()
90
91 def add_cancelled(self, future):
92 with self.lock:
93 super(_AsCompletedWaiter, self).add_cancelled(future)
94 self.event.set()
95
96class _FirstCompletedWaiter(_Waiter):
97 """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