MCPcopy
hub / github.com/MagicStack/asyncpg / terminate

Method terminate

asyncpg/connection.py:1521–1525  ·  view source on GitHub ↗

Terminate the connection without waiting for pending data.

(self)

Source from the content-addressed store, hash-verified

1519 self._cleanup()
1520
1521 def terminate(self):
1522 """Terminate the connection without waiting for pending data."""
1523 if not self.is_closed():
1524 self._abort()
1525 self._cleanup()
1526
1527 async def _reset(self):
1528 self._check_open()

Callers 1

__del__Method · 0.95

Calls 3

is_closedMethod · 0.95
_abortMethod · 0.95
_cleanupMethod · 0.95

Tested by

no test coverage detected