MCPcopy Index your code
hub / github.com/RustPython/RustPython / drain

Method drain

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

Source from the content-addressed store, hash-verified

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

Callers 1

_sendfile_fallbackMethod · 0.45

Calls 1

is_closingMethod · 0.45

Tested by

no test coverage detected