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

Method get_size

asyncpg/pool.py:485–490  ·  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

483 return self._closed or self._closing
484
485 def get_size(self):
486 """Return the current number of connections in this pool.
487
488 .. versionadded:: 0.25.0
489 """
490 return sum(h.is_connected() for h in self._holders)
491
492 def get_min_size(self):
493 """Return the minimum number of connections in this pool.

Callers 1

Calls 1

is_connectedMethod · 0.80

Tested by 1