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

Method restore

Lib/asyncio/base_events.py:264–274  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

262 raise RuntimeError("Invalid state: reading should be paused")
263
264 async def restore(self):
265 self._transport.set_protocol(self._proto)
266 if self._should_resume_reading:
267 self._transport.resume_reading()
268 if self._write_ready_fut is not None:
269 # Cancel the future.
270 # Basically it has no effect because protocol is switched back,
271 # no code should wait for it anymore.
272 self._write_ready_fut.cancel()
273 if self._should_resume_writing:
274 self._proto.resume_writing()
275
276
277class Server(events.AbstractServer):

Callers 1

_sendfile_fallbackMethod · 0.45

Calls 4

set_protocolMethod · 0.45
resume_readingMethod · 0.45
cancelMethod · 0.45
resume_writingMethod · 0.45

Tested by

no test coverage detected