Method
ProcessRunner::read
Waits until the stream has something to read, and returns what is there; an empty string at the end of the stream.
Description#
public ProcessRunner::read(
int $fd = phasync\Util\ProcessInterface::STDOUT
): string|falseParameters#
- $fd int = phasync\Util\ProcessInterface::STDOUT
ProcessInterface::STDOUTorSTDERR
Return values#
string|false
Errors / Exceptions#
| Exception | When |
|---|---|
phasync\IOException | If the stream is closed |