phasync\stream_get_contents()
function
Documentation
Coroutine aware read until EOF from a given stream resource, similar to \stream_get_contents().
This function allows the event loop to continue processing other tasks whenever IO would block.
Signature
function stream_get_contents($stream, ?int $maxLength = NULL, int $offset = -1): string|false
Parameters
| Name | Type | Default |
|---|---|---|
$stream
|
mixed | required |
$maxLength
|
?int |
NULL
|
$offset
|
int |
-1
|
Returns
string|false