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

Function _call_set_state

Lib/asyncio/futures.py:400–409  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

398 source_loop.call_soon_threadsafe(source.cancel)
399
400 def _call_set_state(source):
401 if (destination.cancelled() and
402 dest_loop is not None and dest_loop.is_closed()):
403 return
404 if dest_loop is None or dest_loop is source_loop:
405 _set_state(destination, source)
406 else:
407 if dest_loop.is_closed():
408 return
409 dest_loop.call_soon_threadsafe(_set_state, destination, source)
410
411 destination.add_done_callback(_call_check_cancel)
412 source.add_done_callback(_call_set_state)

Callers

nothing calls this directly

Calls 4

_set_stateFunction · 0.85
cancelledMethod · 0.45
is_closedMethod · 0.45
call_soon_threadsafeMethod · 0.45

Tested by

no test coverage detected