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

Method pause_reading

Lib/asyncio/unix_events.py:565–571  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

563 self._loop.call_soon(self._call_connection_lost, None)
564
565 def pause_reading(self):
566 if not self.is_reading():
567 return
568 self._paused = True
569 self._loop._remove_reader(self._fileno)
570 if self._loop.get_debug():
571 logger.debug("%r pauses reading", self)
572
573 def resume_reading(self):
574 if self._closing or not self._paused:

Callers

nothing calls this directly

Calls 4

is_readingMethod · 0.95
_remove_readerMethod · 0.45
get_debugMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected