-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update PagingIterator #737
Conversation
@sujaygarlanka Interested in feedback on this alternative API. |
I have felt recently how painful it is to use PagingIterator in listItems call and will take another route by calling API endpoint directly. |
@theli I made this contribution as a proposal. Is this an interface you'd be happy with? I know the team wouldn't want to have repeated incompatible changes, and I can push for a decision on this especially if it meets your use case as well as mine. |
I have not reviewed thoroughly the pull request but it looks like it fixes biggest pain point which is async execution of .next method of the PagingIterator. |
Pave the way for construction without a response.
9123b22
to
205e362
Compare
Issue 🔗
PagingIterator
is a pain to use when writing apps.Goals ⚽
PagingIterator.next
to return pages, which will simplify usage for most apps.PagingIterator
directly from the API, as it now requests the first page itself.Implementation Details 🚧
Testing Details 🔍
Tests currently fail to build on my machine, but that is true on
master
, so it is not due to my changes.