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

Method pause_reading

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

Source from the content-addressed store, hash-verified

847 return not self.is_closing() and not self._paused
848
849 def pause_reading(self):
850 if not self.is_reading():
851 return
852 self._paused = True
853 self._loop._remove_reader(self._sock_fd)
854 if self._loop.get_debug():
855 logger.debug("%r pauses reading", self)
856
857 def resume_reading(self):
858 if self._closing or not self._paused:

Callers 1

_sendfile_nativeMethod · 0.45

Calls 4

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

Tested by

no test coverage detected