PosixProcessReader(
self,
process: subprocess.Popen[str],
)| Name | Type |
|---|---|
| process | subprocess.Popen[str] |
Collect text-mode output across polling attempts, joining only at EOF.
Unlike Popen.communicate, a timed-out attempt does not build a snapshot of
all output read so far. Chunks stay buffered for the next attempt, including
partial encoded characters and newline sequences. Nothing else may read the
pipes while this reader is in use.
The caller owns termination and pipe cleanup if communicate raises.