This is available as IO\BufferedReaderLineIterator in the www repository.
IO\BufferedReaderLineIterator
namespace HH\Lib\IO; final class BufferedReaderLineIterator implements AsyncIterator<string> {...}
->__construct(BufferedReader $reader)
->next(): Awaitable<?(mixed, string)>