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

Method _close

Lib/asyncio/unix_events.py:815–821  ·  view source on GitHub ↗
(self, exc=None)

Source from the content-addressed store, hash-verified

813 self._close(exc)
814
815 def _close(self, exc=None):
816 self._closing = True
817 if self._buffer:
818 self._loop._remove_writer(self._fileno)
819 self._buffer.clear()
820 self._loop._remove_reader(self._fileno)
821 self._loop.call_soon(self._call_connection_lost, exc)
822
823 def _call_connection_lost(self, exc):
824 try:

Callers 3

_read_readyMethod · 0.95
abortMethod · 0.95
_fatal_errorMethod · 0.95

Calls 4

_remove_writerMethod · 0.45
clearMethod · 0.45
_remove_readerMethod · 0.45
call_soonMethod · 0.45

Tested by

no test coverage detected