Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MagicStack/asyncpg
/ wait_until_closed
Method
wait_until_closed
tests/test_adversity.py:35–37 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
33
self.assertTrue(con._cancellations)
34
35
async
def
wait_until_closed():
36
while
not con.is_closed():
37
await asyncio.sleep(0.005)
38
39
await asyncio.wait_for(wait_until_closed(), 1)
40
finally:
Callers
nothing calls this directly
Calls
1
is_closed
Method · 0.80
Tested by
no test coverage detected