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

Method _maybe_resume_protocol

Lib/asyncio/transports.py:297–311  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

295 })
296
297 def _maybe_resume_protocol(self):
298 if (self._protocol_paused and
299 self.get_write_buffer_size() <= self._low_water):
300 self._protocol_paused = False
301 try:
302 self._protocol.resume_writing()
303 except (SystemExit, KeyboardInterrupt):
304 raise
305 except BaseException as exc:
306 self._loop.call_exception_handler({
307 'message': 'protocol.resume_writing() failed',
308 'exception': exc,
309 'transport': self,
310 'protocol': self._protocol,
311 })
312
313 def get_write_buffer_limits(self):
314 return (self._low_water, self._high_water)

Callers 6

_write_sendmsgMethod · 0.80
_write_sendMethod · 0.80
_sendto_readyMethod · 0.80
_write_readyMethod · 0.80
_loop_writingMethod · 0.80
_loop_writingMethod · 0.80

Calls 3

get_write_buffer_sizeMethod · 0.95
resume_writingMethod · 0.45

Tested by

no test coverage detected