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

Function _inner_done_callback

Lib/asyncio/tasks.py:978–989  ·  view source on GitHub ↗
(inner)

Source from the content-addressed store, hash-verified

976 futures.future_discard_from_awaited_by(inner, cur_task)
977
978 def _inner_done_callback(inner):
979 if outer.cancelled():
980 return
981
982 if inner.cancelled():
983 outer.cancel()
984 else:
985 exc = inner.exception()
986 if exc is not None:
987 outer.set_exception(exc)
988 else:
989 outer.set_result(inner.result())
990
991 def _outer_done_callback(outer):
992 if not inner.done():

Callers

nothing calls this directly

Calls 6

cancelledMethod · 0.45
cancelMethod · 0.45
exceptionMethod · 0.45
set_exceptionMethod · 0.45
set_resultMethod · 0.45
resultMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…