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

Method get_size

asyncpg/pool.py:591–596  ·  view source on GitHub ↗

Return the current number of connections in this pool. .. versionadded:: 0.25.0

(self)

Source from the content-addressed store, hash-verified

589 return self._closed or self._closing
590
591 def get_size(self):
592 """Return the current number of connections in this pool.
593
594 .. versionadded:: 0.25.0
595 """
596 return sum(h.is_connected() for h in self._holders)
597
598 def get_init_size(self):
599 """Return the initial number of connections in this pool.

Calls 1

is_connectedMethod · 0.80