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

Method finish

tests/test_connect.py:2177–2188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2175 attempts=attempts, tasks=tasks, caller_loop=caller_loop)
2176
2177 async def finish():
2178 try:
2179 # Discarded transports must close without forced cleanup.
2180 results = await asyncio.wait_for(asyncio.gather(
2181 *tasks, return_exceptions=True), 2)
2182 for result in results:
2183 if isinstance(result, BaseException) and not isinstance(
2184 result, asyncio.CancelledError
2185 ):
2186 raise result
2187 finally:
2188 self.proxy.connection_factory = fuzzer.Connection
2189
2190 await asyncio.wrap_future(asyncio.run_coroutine_threadsafe(
2191 configure(), self.proxy.loop))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected