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

Method worker

tests/test_connect.py:2109–2112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2107 pool = await self.create_pool(min_size=5, max_size=10, **conn_args)
2108
2109 async def worker():
2110 async with pool.acquire() as con:
2111 self.assertEqual(con._protocol.is_ssl, expected_ssl)
2112 await self._test_cancellation_recovery(con)
2113
2114 tasks = [self.loop.create_task(worker()) for _ in range(100)]
2115 try:

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45

Tested by

no test coverage detected