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

Function _close_candidates

asyncpg/connect_utils.py:1237–1241  ·  view source on GitHub ↗
(conns, chosen)

Source from the content-addressed store, hash-verified

1235 finally:
1236
1237 async def _close_candidates(conns, chosen):
1238 await asyncio.gather(
1239 *(c.close() for c in conns if c is not chosen),
1240 return_exceptions=True
1241 )
1242 if candidates:
1243 asyncio.create_task(
1244 _close_candidates(candidates, chosen_connection))

Callers 1

_connectFunction · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…