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

Method __init__

asyncpg/connect_utils.py:929–941  ·  view source on GitHub ↗
(
        self,
        loop: asyncio.AbstractEventLoop,
        host: str,
        port: int,
        ssl_context: ssl_module.SSLContext,
        ssl_is_advisory: bool,
    )

Source from the content-addressed store, hash-verified

927
928class TLSUpgradeProto(asyncio.Protocol):
929 def __init__(
930 self,
931 loop: asyncio.AbstractEventLoop,
932 host: str,
933 port: int,
934 ssl_context: ssl_module.SSLContext,
935 ssl_is_advisory: bool,
936 ) -> None:
937 self.on_data = _create_future(loop)
938 self.host = host
939 self.port = port
940 self.ssl_context = ssl_context
941 self.ssl_is_advisory = ssl_is_advisory
942
943 def data_received(self, data: bytes) -> None:
944 if self.on_data.done():

Callers

nothing calls this directly

Calls 1

_create_futureFunction · 0.85

Tested by

no test coverage detected