Skip to content
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

AsyncGenerator functions for API Pagination #1

Open
danopia opened this issue Feb 6, 2021 · 0 comments
Open

AsyncGenerator functions for API Pagination #1

danopia opened this issue Feb 6, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@danopia
Copy link
Member

danopia commented Feb 6, 2021

There is some choice of style here:

  1. Do the funcs yield each page's response in its entirety?
  2. Do the funcs yield each inner item individually, hiding the page concept?
  3. Should both styles be implemented for extra flexibility?

My instinct is that it's pretty easy to write a custom loop if visibility of the full pages are required, so the convenience functions should hide the pages. But I could be convinced otherwise I think.

@danopia danopia added the enhancement New feature or request label Feb 6, 2021
@danopia danopia added this to AWS APIs Dec 21, 2021
@danopia danopia moved this to Todo in AWS APIs Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant