Adjust the reader to exit when the linesSeen equals the count parameter OR the lines collected equals the count parameter. The first condition to reach will break out of the buffer/chunk loop and return the results with a continuation token if there are more bytes to read.
Adjust the reader to exit when the linesSeen equals the count parameter OR the lines collected equals the count parameter. The first condition to reach will break out of the buffer/chunk loop and return the results with a continuation token if there are more bytes to read.