MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / terminate

Method terminate

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

Source from the content-addressed store, hash-verified

268 await self._con.close()
269
270 def terminate(self) -> None:
271 if self._con is not None:
272 # Connection.terminate() will call _release_on_close() to
273 # finish holder cleanup.
274 self._con.terminate()
275
276 def _setup_inactive_callback(self) -> None:
277 if self._inactive_callback is not None:

Callers

nothing calls this directly

Calls 1

terminateMethod · 0.45

Tested by

no test coverage detected