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

implement the catching() of Guava ListenableFuture #196

Closed
Tracked by #194
oldratlee opened this issue Jul 10, 2024 · 0 comments
Closed
Tracked by #194

implement the catching() of Guava ListenableFuture #196

oldratlee opened this issue Jul 10, 2024 · 0 comments
Assignees
Labels
✨ feature New feature

Comments

@oldratlee
Copy link
Member

oldratlee commented Jul 10, 2024

subtask of #194

Suggestion from the author @linzee1 of article 深入理解 Future, CompletableFuture, ListenableFuture,回调机制. 💕

catching()​ methods of Guava ListenableFuture is best-practice, straightforward and convenient, nice.

According the naming convention of CompletableFuture, the implementing instance methods are:

  • catching/catchingAsync
  • catchingCompose/catchingComposeAsync

📝 Implementation Note

  • The position order of catching* method is before exceptionally* method.
    (because catching* method is more best-practice and straightforward.)
@oldratlee oldratlee changed the title catching(), nice 🆙 implement the catching() of Guava ListenableFuture Jul 10, 2024
@oldratlee oldratlee self-assigned this Jul 10, 2024
@oldratlee oldratlee added the ✨ feature New feature label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature New feature
Development

No branches or pull requests

1 participant