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

Method set_result

Lib/asyncio/windows_events.py:184–187  ·  view source on GitHub ↗
(self, result)

Source from the content-addressed store, hash-verified

182 raise RuntimeError("_WaitCancelFuture must not be cancelled")
183
184 def set_result(self, result):
185 super().set_result(result)
186 if self._done_callback is not None:
187 self._done_callback(self)
188
189 def set_exception(self, exception):
190 super().set_exception(exception)

Callers

nothing calls this directly

Calls 2

superClass · 0.85
set_resultMethod · 0.45

Tested by

no test coverage detected