Skip to content

Extends CompletionStage with MultiCompletionStage #239

@linzee1

Description

@linzee1

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions