HH\Lib\IO\BufferedReader::linesIterator

Iterate over all lines in the file

public function linesIterator(): AsyncIterator<string>;

Usage:

foreach ($reader->linesIterator() await as $line) {
  do_stuff($line);
}

Returns