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

Function _call_check_cancel

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

Source from the content-addressed store, hash-verified

391 _set_concurrent_future_state(future, other)
392
393 def _call_check_cancel(destination):
394 if destination.cancelled():
395 if source_loop is None or source_loop is dest_loop:
396 source.cancel()
397 else:
398 source_loop.call_soon_threadsafe(source.cancel)
399
400 def _call_set_state(source):
401 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