KEMBAR78
feat: Resolve API futures on getDownload/UploadResults calls by sydney-munro · Pull Request #2064 · googleapis/java-storage · GitHub
Skip to content

Conversation

@sydney-munro
Copy link
Contributor

For the public API we will resolve the API Futures and return the result (ie. await the resolution and return the result).

@sydney-munro sydney-munro requested a review from a team as a code owner June 13, 2023 21:32
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: storage Issues related to the googleapis/java-storage API. labels Jun 13, 2023

public @NonNull List<ApiFuture<DownloadResult>> getDownloadResults() {
return downloadResults;
public @NonNull List<DownloadResult> getDownloadResults() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we add javadocs, we will want to be sure to mention these methods are blocking.

@sydney-munro sydney-munro force-pushed the resolve-api-futures branch from 4cafd2d to a2ebc96 Compare June 14, 2023 18:36
@sydney-munro sydney-munro merged commit c19049d into feat/transfer-manager Jun 14, 2023
@sydney-munro sydney-munro deleted the resolve-api-futures branch June 14, 2023 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/java-storage API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants