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

Method connection_lost

Lib/test/test_asyncio/test_events.py:238–241  ·  view source on GitHub ↗
(self, exc)

Source from the content-addressed store, hash-verified

236 self.connected.set_result(None)
237
238 def connection_lost(self, exc):
239 self._assert_state('CONNECTED')
240 self.state = 'CLOSED'
241 self.completed.set_result(None)
242
243 def pipe_data_received(self, fd, data):
244 self._assert_state('CONNECTED')

Callers

nothing calls this directly

Calls 2

_assert_stateMethod · 0.95
set_resultMethod · 0.45

Tested by

no test coverage detected