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

Method _warn_on_long_close

asyncpg/pool.py:984–988  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

982 self._closing = False
983
984 def _warn_on_long_close(self):
985 logger.warning('Pool.close() is taking over 60 seconds to complete. '
986 'Check if you have any unreleased connections left. '
987 'Use asyncio.wait_for() to set a timeout for '
988 'Pool.close().')
989
990 def terminate(self):
991 """Terminate all connections in the pool."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected