Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e5470d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sferik Consider the case where
start
is5
and each fetched page has3
elements. On the first entry to theunless last?
block,start
will be set to3
, and the next call toeach
will start yielding elements from the beginning of the next fetched page. However, we wanted to start reading from offset5
. Isn't this a problem?I suggest something like: