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

Method close

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

Source from the content-addressed store, hash-verified

863 logger.debug("%r resumes reading", self)
864
865 def close(self):
866 if self._closing:
867 return
868 self._closing = True
869 self._loop._remove_reader(self._sock_fd)
870 if not self._buffer:
871 self._conn_lost += 1
872 self._loop._remove_writer(self._sock_fd)
873 self._call_soon(self._call_connection_lost, None)
874
875 def __del__(self, _warn=warnings.warn):
876 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

_call_soonMethod · 0.95
_remove_readerMethod · 0.45
_remove_writerMethod · 0.45

Tested by

no test coverage detected