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

Method _abort

asyncpg/connection.py:1596–1601  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1594 await self.execute(reset_query)
1595
1596 def _abort(self):
1597 # Put the connection into the aborted state.
1598 self._aborted = True
1599 if self._protocol is not None:
1600 self._protocol.abort()
1601 self._protocol = None
1602
1603 def _cleanup(self):
1604 self._call_termination_listeners()

Callers 2

closeMethod · 0.95
terminateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected