Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
Callers
15
test_pool_release_timeout_during_cancellation
Method · 0.80
test_pool_release_after_background_cancel_timeout
Method · 0.80
test_pool_max_inactive_time_05
Method · 0.80
test_pool_min_size_restored_after_idle_connection_loss
Method · 0.80
test_pool_min_size_retries_failed_reconnect
Method · 0.80
init
Method · 0.80
test_pool_floor_reconnect_honors_expired_generation
Method · 0.80
test_pool_min_size_retries_closed_connection
Method · 0.80
test_pool_shutdown_cancels_floor_reconnect
Method · 0.80
test_pool_release_after_protocol_abort
Method · 0.80
_test_connect_interruption
Method · 0.80
test_executemany_timeout_flow_control
Method · 0.80
Calls
1
get_size
Method · 0.80
Tested by
no test coverage detected