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

Method terminate

asyncpg/connection.py:1544–1548  ·  view source on GitHub ↗

Terminate the connection without waiting for pending data.

(self)

Source from the content-addressed store, hash-verified

1542 self._cleanup()
1543
1544 def terminate(self):
1545 """Terminate the connection without waiting for pending data."""
1546 if not self._aborted and self._protocol is not None:
1547 self._abort()
1548 self._cleanup()
1549
1550 async def _reset(self):
1551 self._check_open()

Callers 2

__del__Method · 0.95
_cancelMethod · 0.95

Calls 2

_abortMethod · 0.95
_cleanupMethod · 0.95

Tested by

no test coverage detected