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

Method write_eof

Lib/asyncio/selector_events.py:1176–1181  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1174 self._sock.shutdown(socket.SHUT_WR)
1175
1176 def write_eof(self):
1177 if self._closing or self._eof:
1178 return
1179 self._eof = True
1180 if not self._buffer:
1181 self._sock.shutdown(socket.SHUT_WR)
1182
1183 def writelines(self, list_of_data):
1184 if self._eof:

Callers

nothing calls this directly

Calls 1

shutdownMethod · 0.45

Tested by

no test coverage detected