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

Function _set_state

Lib/asyncio/futures.py:388–392  ·  view source on GitHub ↗
(future, other)

Source from the content-addressed store, hash-verified

386 dest_loop = _get_loop(destination) if isfuture(destination) else None
387
388 def _set_state(future, other):
389 if isfuture(future):
390 _copy_future_state(other, future)
391 else:
392 _set_concurrent_future_state(future, other)
393
394 def _call_check_cancel(destination):
395 if destination.cancelled():

Callers 1

_call_set_stateFunction · 0.85

Calls 3

isfutureFunction · 0.85
_copy_future_stateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…