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

Method is_closing

asyncpg/pool.py:584–589  ·  view source on GitHub ↗

Return ``True`` if the pool is closing or is closed. .. versionadded:: 0.28.0

(self)

Source from the content-addressed store, hash-verified

582 self._maintenance_task = None
583
584 def is_closing(self):
585 """Return ``True`` if the pool is closing or is closed.
586
587 .. versionadded:: 0.28.0
588 """
589 return self._closed or self._closing
590
591 def get_size(self):
592 """Return the current number of connections in this pool.

Calls

no outgoing calls