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

Method _warn_on_long_close

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

Source from the content-addressed store, hash-verified

1106 self._closing = False
1107
1108 def _warn_on_long_close(self):
1109 logger.warning('Pool.close() is taking over 60 seconds to complete. '
1110 'Check if you have any unreleased connections left. '
1111 'Use asyncio.wait_for() to set a timeout for '
1112 'Pool.close().')
1113
1114 def terminate(self):
1115 """Terminate all connections in the pool."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected