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

Method connection_lost

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

Source from the content-addressed store, hash-verified

968 host=self.host, port=self.port)))
969
970 def connection_lost(self, exc: typing.Optional[Exception]) -> None:
971 if not self.on_data.done():
972 if exc is None:
973 exc = ConnectionError('unexpected connection_lost() call')
974 self.on_data.set_exception(exc)
975
976
977_ProctolFactoryR = typing.TypeVar(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected