MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / connection_lost

Method connection_lost

asyncpg/connect_utils.py:944–948  ·  view source on GitHub ↗
(self, exc: typing.Optional[Exception])

Source from the content-addressed store, hash-verified

942 host=self.host, port=self.port)))
943
944 def connection_lost(self, exc: typing.Optional[Exception]) -> None:
945 if not self.on_data.done():
946 if exc is None:
947 exc = ConnectionError('unexpected connection_lost() call')
948 self.on_data.set_exception(exc)
949
950
951_ProctolFactoryR = typing.TypeVar(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected