Skip to content

fix: Use Futures.getDone() instead of Future.get() in listener#1109

Merged
TimurSadykov merged 4 commits intogoogleapis:mainfrom
ejona86:futures-getdone
Jan 25, 2023
Merged

fix: Use Futures.getDone() instead of Future.get() in listener#1109
TimurSadykov merged 4 commits intogoogleapis:mainfrom
ejona86:futures-getdone

Conversation

@ejona86
Copy link
Copy Markdown
Contributor

@ejona86 ejona86 commented Dec 8, 2022

Listeners for Futures should generally use Futures.addCallback() or Futures.getDone() when called. This makes it clear they won't block and allows tooling to know it will never block.

cl/492555987

Listeners for Futures should generally use Futures.addCallback() or
Futures.getDone() when called. This makes it clear they won't block and
allows tooling to know it will never block.

cl/492555987
@ejona86 ejona86 requested a review from a team December 8, 2022 00:12
@product-auto-label product-auto-label Bot added the size: xs Pull request size is extra small. label Dec 8, 2022
@TimurSadykov TimurSadykov merged commit 1e624a9 into googleapis:main Jan 25, 2023
@TimurSadykov TimurSadykov changed the title oauth2_http: Use Futures.getDone() instead of Future.get() in listener fix: Use Futures.getDone() instead of Future.get() in listener Jan 25, 2023
@ejona86 ejona86 deleted the futures-getdone branch November 6, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants