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

Method close

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

Source from the content-addressed store, hash-verified

298 await self._in_use
299
300 async def close(self) -> None:
301 if self._con is not None:
302 # Connection.close() will call _release_on_close() to
303 # finish holder cleanup.
304 await self._con.close()
305
306 def terminate(self) -> None:
307 if self._con is not None:

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected