Skip to content

Commit

Permalink
feat: implement the multi-actions methods in `CompletableFutureUtil…
Browse files Browse the repository at this point in the history
…s` ✨
  • Loading branch information
oldratlee committed Jun 15, 2024
1 parent 6ffa1fc commit 8b6b5ab
Show file tree
Hide file tree
Showing 4 changed files with 568 additions and 29 deletions.
10 changes: 5 additions & 5 deletions cffu-core/src/main/java/io/foldright/cffu/CffuFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ public final <T> Cffu<List<T>> allResultsOfFastFail(CompletionStage<? extends T>

/**
* Returns a new Cffu with the most results in the <strong>same order</strong> of
* the given stages in the given time({@code timeout}), aka as many results as possible in the given time.
* the given stages in the given time({@code timeout}, aka as many results as possible in the given time).
* <p>
* If the given stage is successful, its result is the completed value; Otherwise the given valueIfNotSuccess.
*
Expand Down Expand Up @@ -629,7 +629,7 @@ public <T1, T2, T3, T4, T5> Cffu<Tuple5<T1, T2, T3, T4, T5>> allTupleOfFastFail(

/**
* Returns a new Cffu with the most results in the <strong>same order</strong> of
* the given two stages in the given time({@code timeout}), aka as many results as possible in the given time.
* the given two stages in the given time({@code timeout}, aka as many results as possible in the given time).
* <p>
* If the given stage is successful, its result is the completed value; Otherwise the value {@code null}.
*
Expand All @@ -647,7 +647,7 @@ public <T1, T2> Cffu<Tuple2<T1, T2>> mostTupleOfSuccess(

/**
* Returns a new Cffu with the most results in the <strong>same order</strong> of
* the given three stages in the given time({@code timeout}), aka as many results as possible in the given time.
* the given three stages in the given time({@code timeout}, aka as many results as possible in the given time).
* <p>
* If the given stage is successful, its result is the completed value; Otherwise the value {@code null}.
*
Expand All @@ -666,7 +666,7 @@ public <T1, T2, T3> Cffu<Tuple3<T1, T2, T3>> mostTupleOfSuccess(

/**
* Returns a new Cffu with the most results in the <strong>same order</strong> of
* the given four stages in the given time({@code timeout}), aka as many results as possible in the given time.
* the given four stages in the given time({@code timeout}, aka as many results as possible in the given time).
* <p>
* If the given stage is successful, its result is the completed value; Otherwise the value {@code null}.
*
Expand All @@ -686,7 +686,7 @@ public <T1, T2, T3, T4> Cffu<Tuple4<T1, T2, T3, T4>> mostTupleOfSuccess(

/**
* Returns a new Cffu with the most results in the <strong>same order</strong> of
* the given five stages in the given time({@code timeout}), aka as many results as possible in the given time.
* the given five stages in the given time({@code timeout}, aka as many results as possible in the given time).
* <p>
* If the given stage is successful, its result is the completed value; Otherwise the value {@code null}.
*
Expand Down
Loading

0 comments on commit 8b6b5ab

Please sign in to comment.