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

Method set_result

Lib/test/test_asyncio/test_futures.py:87–90  ·  view source on GitHub ↗
(self, result)

Source from the content-addressed store, hash-verified

85 return self.__exception
86
87 def set_result(self, result):
88 self.assertFalse(self.done())
89 self.assertIsNotNone(result)
90 self.__result = result
91
92 def set_exception(self, exception):
93 self.assertFalse(self.done())

Callers 15

test___repr__waiterMethod · 0.45
innerMethod · 0.45
connection_lostMethod · 0.45
test_uninitializedMethod · 0.45
test_resultMethod · 0.45
test_yield_from_twiceMethod · 0.45
test_future_reprMethod · 0.45

Calls 3

doneMethod · 0.95
assertFalseMethod · 0.80
assertIsNotNoneMethod · 0.80

Tested by

no test coverage detected