Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Extends CompletionStage with MultiCompletionStage #239

Open
linzee1 opened this issue Sep 15, 2024 · 0 comments
Open

Extends CompletionStage with MultiCompletionStage #239

linzee1 opened this issue Sep 15, 2024 · 0 comments
Labels
📐 design discussion Design discussion

Comments

@linzee1
Copy link
Contributor

linzee1 commented Sep 15, 2024

It is generally reccommand to use interface rather than specific class. Many users use CompletionStage despite of the underlying CompletableFuture.
There are a bunch of new methods provided by CFFU, such as

  1. Cffu<List> thenMApplyFastFailAsync(Function<? super T, ? extends U>... fns)
  2. Cffu<Tuple2<U1, U2>> thenTupleMApplyFastFailAsync(Function<? super T, ? extends U1> fn1, Function<? super T, ? extends U2> fn2),

which are basicly extentions of stage operations.
Maybe it is better to use a new subinterface like MultiCompletionStage. MultiCompletionStage should contain the methods below
image

Possible problem: this change could make the project much more complex.

@oldratlee oldratlee added the 📐 design discussion Design discussion label Nov 20, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
📐 design discussion Design discussion
Development

No branches or pull requests

2 participants