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

Method write_stdin

Lib/test/test_asyncio/test_subprocess.py:313–317  ·  view source on GitHub ↗
(proc, data)

Source from the content-addressed store, hash-verified

311 )
312
313 async def write_stdin(proc, data):
314 proc.stdin.write(data)
315 # Only exit the child process once the write buffer is filled
316 os.write(wfd, b'go')
317 await proc.stdin.drain()
318
319 coro = write_stdin(proc, large_data)
320 # drain() must raise BrokenPipeError or ConnectionResetError

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
drainMethod · 0.45

Tested by

no test coverage detected