googleapis / gax-java

This library has moved to https://github.com/googleapis/sdk-platform-java/tree/main/gax-java.
https://github.com/googleapis/gapic-generator-java/tree/main/gax-java
BSD 3-Clause "New" or "Revised" License
161 stars 119 forks source link

FR: provide a way to asynchronously fetch all of the entries in a paginated callable #571

Closed igorbernstein2 closed 2 years ago

igorbernstein2 commented 6 years ago

Currently there is no straightforward way to asynchronously get all of the entries in a paginated method. The user either has to use a thread pool and call AbstractPage#iterateAll() or use chained futures for each page.

michaelbausor commented 6 years ago

How common is this use case? I don't have a good sense of how highly this should be prioritized. cc @garrettjonesgoogle

igorbernstein2 commented 6 years ago

I'd say its a pretty low priority. I just want to get rid of this ugliness: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/36409f5b1df89609eaef92d09cebea97931339bd/google-cloud-clients/google-cloud-bigtable-admin/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminClient.java#L439-L478

meltsufin commented 2 years ago

Closing due to low priority and lack of activity for a long time.