MCPcopy Index your code
hub / github.com/RustPython/RustPython / close

Method close

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

Source from the content-addressed store, hash-verified

859 logger.debug("%r resumes reading", self)
860
861 def close(self):
862 if self._closing:
863 return
864 self._closing = True
865 self._loop._remove_reader(self._sock_fd)
866 if not self._buffer:
867 self._conn_lost += 1
868 self._loop._remove_writer(self._sock_fd)
869 self._loop.call_soon(self._call_connection_lost, None)
870
871 def __del__(self, _warn=warnings.warn):
872 if self._sock is not None:

Callers 7

closeMethod · 0.45
_close_self_pipeMethod · 0.45
_accept_connection2Method · 0.45
_stop_servingMethod · 0.45
__del__Method · 0.45
_call_connection_lostMethod · 0.45
closeMethod · 0.45

Calls 3

_remove_readerMethod · 0.45
_remove_writerMethod · 0.45
call_soonMethod · 0.45

Tested by

no test coverage detected