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

Method close

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

Source from the content-addressed store, hash-verified

262 await self._in_use
263
264 async def close(self) -> None:
265 if self._con is not None:
266 # Connection.close() will call _release_on_close() to
267 # finish holder cleanup.
268 await self._con.close()
269
270 def terminate(self) -> None:
271 if self._con is not None:

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected