MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / __init__

Method __init__

asyncpg/connect_utils.py:912–924  ·  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

910
911class TLSUpgradeProto(asyncio.Protocol):
912 def __init__(
913 self,
914 loop: asyncio.AbstractEventLoop,
915 host: str,
916 port: int,
917 ssl_context: ssl_module.SSLContext,
918 ssl_is_advisory: bool,
919 ) -> None:
920 self.on_data = _create_future(loop)
921 self.host = host
922 self.port = port
923 self.ssl_context = ssl_context
924 self.ssl_is_advisory = ssl_is_advisory
925
926 def data_received(self, data: bytes) -> None:
927 if data == b'S':

Callers

nothing calls this directly

Calls 1

_create_futureFunction · 0.85

Tested by

no test coverage detected