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

Method wait

tests/test_pool.py:52–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51 async def wait_for_pool_size(self, pool, size):
52 async def wait():
53 while pool.get_size() != size:
54 await asyncio.sleep(0.01)
55
56 await asyncio.wait_for(wait(), 5)
57

Calls 1

get_sizeMethod · 0.80

Tested by

no test coverage detected