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

Method terminate

asyncpg/pool.py:990–997  ·  view source on GitHub ↗

Terminate all connections in the pool.

(self)

Source from the content-addressed store, hash-verified

988 'Pool.close().')
989
990 def terminate(self):
991 """Terminate all connections in the pool."""
992 if self._closed:
993 return
994 self._check_init()
995 for ch in self._holders:
996 ch.terminate()
997 self._closed = True
998
999 async def expire_connections(self):
1000 """Expire all currently open connections.

Calls 1

_check_initMethod · 0.95