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

Method set_protocol

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

Source from the content-addressed store, hash-verified

962 self._call_soon(futures._set_result_unless_cancelled, waiter, None)
963
964 def set_protocol(self, protocol):
965 if isinstance(protocol, protocols.BufferedProtocol):
966 self._read_ready_cb = self._read_ready__get_buffer
967 else:
968 self._read_ready_cb = self._read_ready__data_received
969
970 super().set_protocol(protocol)
971
972 def _read_ready(self):
973 self._read_ready_cb()

Callers

nothing calls this directly

Calls 2

superClass · 0.85
set_protocolMethod · 0.45

Tested by

no test coverage detected