MCPcopy Index your code
hub / github.com/python/cpython / set_protocol

Method set_protocol

Lib/asyncio/selector_events.py:836–838  ·  view source on GitHub ↗
(self, protocol)

Source from the content-addressed store, hash-verified

834 self._force_close(None)
835
836 def set_protocol(self, protocol):
837 self._protocol = protocol
838 self._protocol_connected = True
839
840 def get_protocol(self):
841 return self._protocol

Callers 2

__init__Method · 0.95
set_protocolMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected