Skip to content

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

Merged
sydney-munro merged 2 commits intofeat/transfer-managerfrom
resolve-api-futures
Jun 14, 2023
Merged

feat: Resolve API futures on getDownload/UploadResults calls#2064
sydney-munro merged 2 commits intofeat/transfer-managerfrom
resolve-api-futures

Conversation

@sydney-munro
Copy link
Copy Markdown
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 review from a team and BenWhitehead 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
Copy Markdown
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