GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add ApiFutures.successfulAsList by thebrianchen · Pull Request #163 · googleapis/api-common-java

This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Conversation

@thebrianchen

@thebrianchen thebrianchen commented Jul 14, 2020

Copy link
Copy Markdown

I would like to use this in the java-firestore repo. This PR exposes ApiFutures.successfulAsList (link).

Here is a PR that uses it (link). successfulAsList allows me to wait for all Futures to complete (ApiFutures.allAsList completes early if an exception is thrown) before I run my listener. The alternative implementation without this method would be to manually add listeners to all the ApiFutures in order to handle exceptions.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Brian Chen
feat: add ApiFutures.successfulAsList
43b931b
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 14, 2020
@codecov

codecov Bot commented Jul 14, 2020

Copy link
Copy Markdown

Codecov Report

Merging #163 into master will increase coverage by 0.24%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #163      +/-   ##
============================================
+ Coverage     64.43%   64.68%   +0.24%     
- Complexity      174      175       +1     
============================================
  Files            14       14              
  Lines           717      722       +5     
  Branches        120      120              
============================================
+ Hits            462      467       +5     
  Misses          219      219              
  Partials         36       36              
Impacted Files Coverage Δ Complexity Δ
src/main/java/com/google/api/core/ApiFutures.java 87.03% <100.00%> (+1.32%) 12.00 <1.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8fad49d...43b931b. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thebrianchen
thebrianchen marked this pull request as ready for review July 14, 2020 21:32
@BenWhitehead
BenWhitehead self-requested a review July 14, 2020 21:54
BenWhitehead
BenWhitehead approved these changes Jul 14, 2020
View reviewed changes

@BenWhitehead BenWhitehead left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This looks okay to me. @chingor13 does this seem okay to you?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@BenWhitehead
BenWhitehead requested a review from chingor13 July 14, 2020 22:52
@BenWhitehead BenWhitehead self-assigned this Jul 14, 2020
@chingor13
chingor13 requested review from miraleung and vam-google July 16, 2020 14:59
vam-google
vam-google approved these changes Jul 17, 2020
View reviewed changes

@vam-google vam-google left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@BenWhitehead
BenWhitehead merged commit 6af8e24 into googleapis:master Jul 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@chingor13 chingor13 Awaiting requested review from chingor13
@miraleung miraleung Awaiting requested review from miraleung
2 more reviewers
@BenWhitehead BenWhitehead BenWhitehead approved these changes
@vam-google vam-google vam-google approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@BenWhitehead BenWhitehead

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@thebrianchen @BenWhitehead @vam-google @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.