The containing class is available as IO\BufferedReader
in the www repository.
Iterate over all lines in the file
public function linesIterator(): AsyncIterator<string>;
Usage:
foreach ($reader->linesIterator() await as $line) {
do_stuff($line);
}