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

Class CancelProto

asyncpg/connect_utils.py:1316–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1314 backend_pid, backend_secret):
1315
1316 class CancelProto(asyncio.Protocol):
1317
1318 def __init__(self):
1319 self.on_disconnect = _create_future(loop)
1320 self.is_ssl = False
1321
1322 def connection_lost(self, exc):
1323 if not self.on_disconnect.done():
1324 self.on_disconnect.set_result(True)
1325
1326 tr = None
1327 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected