BoundedRead
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- followedBy() : Generator<string|int, Rows>
- read() : Rows>, bool}
- Reads $rows while the process stays under the limit; $rows is left at the first batch not read.
Methods
__construct()
public
__construct(Unit $limit, Backend $backend) : mixed
Parameters
followedBy()
public
static followedBy(array<int, Rows> $read, Generator<string|int, Rows> $rest) : Generator<string|int, Rows>
Parameters
Return values
Generator<string|int, Rows> —the batches already read, then what is left of $rest
read()
Reads $rows while the process stays under the limit; $rows is left at the first batch not read.
public
read(Generator<string|int, Rows> $rows) : Rows>, bool}
Parameters
- $rows : Generator<string|int, Rows>
Return values
Rows>, bool} —the batches read, and whether $rows ended within the limit