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

Method drain

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

Source from the content-addressed store, hash-verified

222 self._write_ready_fut = None
223
224 async def drain(self):
225 if self._transport.is_closing():
226 raise ConnectionError("Connection closed by peer")
227 fut = self._write_ready_fut
228 if fut is None:
229 return
230 await fut
231
232 def connection_made(self, transport):
233 raise RuntimeError("Invalid state: "

Callers 1

_sendfile_fallbackMethod · 0.45

Calls 1

is_closingMethod · 0.45

Tested by

no test coverage detected