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

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants