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

Function wait_closed

asyncpg/compat.py:45–53  ·  view source on GitHub ↗
(stream: asyncio.StreamWriter)

Source from the content-addressed store, hash-verified

43
44
45async def wait_closed(stream: asyncio.StreamWriter) -> None:
46 # Not all asyncio versions have StreamWriter.wait_closed().
47 if hasattr(stream, 'wait_closed'):
48 try:
49 await stream.wait_closed()
50 except ConnectionResetError:
51 # On Windows wait_closed() sometimes propagates
52 # ConnectionResetError which is totally unnecessary.
53 pass
54
55
56if sys.version_info < (3, 12):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…