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

feat: Resolve API futures on getDownload/UploadResults calls #2064

Merged
merged 2 commits into from
Jun 14, 2023

Conversation

sydney-munro
Copy link
Collaborator

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
@@ -39,8 +41,8 @@ private DownloadJob(
this.parallelDownloadConfig = parallelDownloadConfig;
}

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 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