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

Method is_closing

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

476 await asyncio.gather(*connect_tasks)
477
478 def is_closing(self):
479 """Return ``True`` if the pool is closing or is closed.
480
481 .. versionadded:: 0.28.0
482 """
483 return self._closed or self._closing
484
485 def get_size(self):
486 """Return the current number of connections in this pool.

Callers 1

test_pool_closingMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_pool_closingMethod · 0.64