Method
BufferedStream::read
Returns up to $length bytes, waiting while the content is not yet appended and the stream has not ended.
Description#
public BufferedStream::read(
$length
): stringParameters#
- $length
Return values#
string
Errors / Exceptions#
| Exception | When |
|---|---|
TimeoutException | When nothing is appended and end() is not called within $deadlockTimeout seconds |
RuntimeException | When the stream is detached or closed |