phasync
BufferedStream / __construct

Method

BufferedStream::__construct

Creates an empty stream.

Description#

public BufferedStream::__construct(
    int $bufferSize = 2097152,
    float $deadlockTimeout = 60.0
)

Parameters#

$bufferSize int = 2097152
The content size in bytes above which it moves from memory to a temporary file
$deadlockTimeout float = 60.0
Seconds that a read or getSize() waits for the writer before throwing a TimeoutException