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

Method terminate

asyncpg/pool.py:306–310  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

304 await self._con.close()
305
306 def terminate(self) -> None:
307 if self._con is not None:
308 # Connection.terminate() will call _release_on_close() to
309 # finish holder cleanup.
310 self._con.terminate()
311
312 def _setup_inactive_callback(self) -> None:
313 if self._inactive_callback is not None:

Callers

nothing calls this directly

Calls 1

terminateMethod · 0.45

Tested by

no test coverage detected