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

Method _wait_for_client_close

tests/test_connect.py:2003–2007  ·  view source on GitHub ↗
(self, *, ready=None)

Source from the content-addressed store, hash-verified

2001 return True
2002
2003 async def _wait_for_client_close(self, *, ready=None):
2004 if ready is not None:
2005 # Readiness events belong to the test loop, not the proxy thread.
2006 self.caller_loop.call_soon_threadsafe(ready.set)
2007 await self.client_reader.read()
2008
2009 def _write_message(self, message_type, payload):
2010 length = self.MESSAGE_LENGTH.size + len(payload)

Callers 2

prepareMethod · 0.95
_negotiate_sslMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected