Skip to content

Commit

Permalink
fix: wrong exector for Cffu.thenTupleM* methods
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Jun 24, 2024
1 parent 1b0cd8b commit e834f98
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cffu-core/src/main/java/io/foldright/cffu/Cffu.java
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public Cffu<Void> thenRunAsync(Runnable action, Executor executor) {
*/
public <U1, U2> Cffu<Tuple2<U1, U2>> thenTupleMApplyFastFailAsync(
Function<? super T, ? extends U1> fn1, Function<? super T, ? extends U2> fn2) {
return reset0(CompletableFutureUtils.thenTupleMApplyFastFailAsync(cf, fn1, fn2));
return reset0(CompletableFutureUtils.thenTupleMApplyFastFailAsync(cf, fac.defaultExecutor(), fn1, fn2));
}

/**
Expand All @@ -248,7 +248,7 @@ public <U1, U2> Cffu<Tuple2<U1, U2>> thenTupleMApplyFastFailAsync(
public <U1, U2, U3> Cffu<Tuple3<U1, U2, U3>> thenTupleMApplyFastFailAsync(
Function<? super T, ? extends U1> fn1, Function<? super T, ? extends U2> fn2,
Function<? super T, ? extends U3> fn3) {
return reset0(CompletableFutureUtils.thenTupleMApplyFastFailAsync(cf, fn1, fn2, fn3));
return reset0(CompletableFutureUtils.thenTupleMApplyFastFailAsync(cf, fac.defaultExecutor(), fn1, fn2, fn3));
}

/**
Expand All @@ -266,7 +266,7 @@ public <U1, U2, U3> Cffu<Tuple3<U1, U2, U3>> thenTupleMApplyFastFailAsync(
public <U1, U2, U3, U4> Cffu<Tuple4<U1, U2, U3, U4>> thenTupleMApplyFastFailAsync(
Function<? super T, ? extends U1> fn1, Function<? super T, ? extends U2> fn2,
Function<? super T, ? extends U3> fn3, Function<? super T, ? extends U4> fn4) {
return reset0(CompletableFutureUtils.thenTupleMApplyFastFailAsync(cf, fn1, fn2, fn3, fn4));
return reset0(CompletableFutureUtils.thenTupleMApplyFastFailAsync(cf, fac.defaultExecutor(), fn1, fn2, fn3, fn4));
}

/**
Expand All @@ -285,7 +285,7 @@ public <U1, U2, U3, U4, U5> Cffu<Tuple5<U1, U2, U3, U4, U5>> thenTupleMApplyFast
Function<? super T, ? extends U1> fn1, Function<? super T, ? extends U2> fn2,
Function<? super T, ? extends U3> fn3, Function<? super T, ? extends U4> fn4,
Function<? super T, ? extends U5> fn5) {
return reset0(CompletableFutureUtils.thenTupleMApplyFastFailAsync(cf, fn1, fn2, fn3, fn4, fn5));
return reset0(CompletableFutureUtils.thenTupleMApplyFastFailAsync(cf, fac.defaultExecutor(), fn1, fn2, fn3, fn4, fn5));
}

/**
Expand All @@ -299,7 +299,7 @@ public <U1, U2, U3, U4, U5> Cffu<Tuple5<U1, U2, U3, U4, U5>> thenTupleMApplyFast
*/
public <U1, U2> Cffu<Tuple2<U1, U2>> thenTupleMApplyAsync(
Function<? super T, ? extends U1> fn1, Function<? super T, ? extends U2> fn2) {
return reset0(CompletableFutureUtils.thenTupleMApplyAsync(cf, fn1, fn2));
return reset0(CompletableFutureUtils.thenTupleMApplyAsync(cf, fac.defaultExecutor(), fn1, fn2));
}

/**
Expand All @@ -314,7 +314,7 @@ public <U1, U2> Cffu<Tuple2<U1, U2>> thenTupleMApplyAsync(
public <U1, U2, U3> Cffu<Tuple3<U1, U2, U3>> thenTupleMApplyAsync(
Function<? super T, ? extends U1> fn1, Function<? super T, ? extends U2> fn2,
Function<? super T, ? extends U3> fn3) {
return reset0(CompletableFutureUtils.thenTupleMApplyAsync(cf, fn1, fn2, fn3));
return reset0(CompletableFutureUtils.thenTupleMApplyAsync(cf, fac.defaultExecutor(), fn1, fn2, fn3));
}

/**
Expand All @@ -329,7 +329,7 @@ public <U1, U2, U3> Cffu<Tuple3<U1, U2, U3>> thenTupleMApplyAsync(
public <U1, U2, U3, U4> Cffu<Tuple4<U1, U2, U3, U4>> thenTupleMApplyAsync(
Function<? super T, ? extends U1> fn1, Function<? super T, ? extends U2> fn2,
Function<? super T, ? extends U3> fn3, Function<? super T, ? extends U4> fn4) {
return reset0(CompletableFutureUtils.thenTupleMApplyAsync(cf, fn1, fn2, fn3, fn4));
return reset0(CompletableFutureUtils.thenTupleMApplyAsync(cf, fac.defaultExecutor(), fn1, fn2, fn3, fn4));
}

/**
Expand All @@ -345,7 +345,7 @@ public <U1, U2, U3, U4, U5> Cffu<Tuple5<U1, U2, U3, U4, U5>> thenTupleMApplyAsyn
Function<? super T, ? extends U1> fn1, Function<? super T, ? extends U2> fn2,
Function<? super T, ? extends U3> fn3, Function<? super T, ? extends U4> fn4,
Function<? super T, ? extends U5> fn5) {
return reset0(CompletableFutureUtils.thenTupleMApplyAsync(cf, fn1, fn2, fn3, fn4, fn5));
return reset0(CompletableFutureUtils.thenTupleMApplyAsync(cf, fac.defaultExecutor(), fn1, fn2, fn3, fn4, fn5));
}

// endregion
Expand Down

0 comments on commit e834f98

Please sign in to comment.