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

Function _call_check_cancel

Lib/asyncio/futures.py:394–399  ·  view source on GitHub ↗
(destination)

Source from the content-addressed store, hash-verified

392 _set_concurrent_future_state(future, other)
393
394 def _call_check_cancel(destination):
395 if destination.cancelled():
396 if source_loop is None or source_loop is events._get_running_loop():
397 source.cancel()
398 else:
399 source_loop.call_soon_threadsafe(source.cancel)
400
401 def _call_set_state(source):
402 if (destination.cancelled() and

Callers

nothing calls this directly

Calls 3

cancelledMethod · 0.45
cancelMethod · 0.45
call_soon_threadsafeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…