Package io.foldright.cffu2
Class CfIterableUtils
java.lang.Object
io.foldright.cffu2.CfIterableUtils
This utility class provides
Iterable-based variants (including Collection, List, etc.) of
same-named varargs methods from CompletableFutureUtils. These methods handle multiple actions
and CompletableFutures with the same type (aka. homogeneous).
While CfTupleUtils uses strongly typed tuples for handling different types of actions and
CompletableFutures (aka. heterogeneous), this class and CompletableFutureUtils work with homogeneous types,
offering a flexible approach for handling collections of actions and CompletableFutures of the same type.
- Author:
- Eric Lin (linqinghua4 at gmail dot com), Jerry Lee (oldratlee at gmail dot com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<Void> allFailFastOf(Iterable<? extends CompletionStage<?>> cfs) Iterable variant ofCompletableFutureUtils.allFailFastOf(CompletionStage[]).static CompletableFuture<Void> allOf(Iterable<? extends CompletionStage<?>> cfs) Iterable variant ofCompletableFutureUtils.allOf(CompletionStage[]).static <T> CompletableFuture<List<T>> allResultsFailFastOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCompletableFutureUtils.allResultsFailFastOf(CompletionStage[]).static <T> CompletableFuture<List<T>> allResultsOf(Iterable<? extends CompletionStage<? extends T>> cfs) static <T> CompletableFuture<List<T>> allSuccessResultsOf(T valueIfFailed, Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCompletableFutureUtils.allSuccessResultsOf(Object, CompletionStage[]).static <T> CompletableFuture<T> anyOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCompletableFutureUtils.anyOf(CompletionStage[]).static <T> CompletableFuture<T> anySuccessOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCompletableFutureUtils.anySuccessOf(CompletionStage[]).static <T> CompletableFuture<List<T>> mostSuccessResultsOf(T valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends CompletionStage<? extends T>> cfs) static <T> CompletableFuture<List<T>> mostSuccessResultsOf(T valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends CompletionStage<? extends T>> cfs, Executor executorWhenTimeout) static CompletableFuture<Void> mRunAnyAsync(Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.mRunAnyAsync(Runnable...).static CompletableFuture<Void> mRunAnyAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCompletableFutureUtils.mRunAnyAsync(Executor, Runnable...).static CompletableFuture<Void> mRunAnySuccessAsync(Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.mRunAnySuccessAsync(Runnable...).static CompletableFuture<Void> mRunAnySuccessAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCompletableFutureUtils.mRunAnySuccessAsync(Executor, Runnable...).static CompletableFuture<Void> Iterable variant ofCompletableFutureUtils.mRunAsync(Runnable...).static CompletableFuture<Void> Iterable variant ofCompletableFutureUtils.mRunAsync(Executor, Runnable...).static CompletableFuture<Void> mRunFailFastAsync(Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.mRunFailFastAsync(Runnable...).static CompletableFuture<Void> mRunFailFastAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCompletableFutureUtils.mRunFailFastAsync(Executor, Runnable...).static <T> CompletableFuture<List<T>> mSupplyAllSuccessAsync(T valueIfFailed, Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyAllSuccessAsync(Object, Supplier[]).static <T> CompletableFuture<List<T>> mSupplyAllSuccessAsync(T valueIfFailed, Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCompletableFutureUtils.mSupplyAllSuccessAsync(Executor, Object, Supplier[]).static <T> CompletableFuture<T> mSupplyAnyAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyAnyAsync(Supplier[]).static <T> CompletableFuture<T> mSupplyAnyAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCompletableFutureUtils.mSupplyAnyAsync(Executor, Supplier[]).static <T> CompletableFuture<T> mSupplyAnySuccessAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyAnySuccessAsync(Supplier[]).static <T> CompletableFuture<T> mSupplyAnySuccessAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCompletableFutureUtils.mSupplyAnySuccessAsync(Executor, Supplier[]).static <T> CompletableFuture<List<T>> mSupplyAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyAsync(Supplier[]).static <T> CompletableFuture<List<T>> mSupplyAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCompletableFutureUtils.mSupplyAsync(Executor, Supplier[]).static <T> CompletableFuture<List<T>> mSupplyFailFastAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyFailFastAsync(Supplier[]).static <T> CompletableFuture<List<T>> mSupplyFailFastAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCompletableFutureUtils.mSupplyFailFastAsync(Executor, Supplier[]).static <T> CompletableFuture<List<T>> mSupplyMostSuccessAsync(T valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyMostSuccessAsync(Object, long, TimeUnit, Supplier[]).static <T> CompletableFuture<List<T>> mSupplyMostSuccessAsync(T valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) static <T> CompletableFuture<Void> thenMAcceptAnyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions) Iterable variant ofCompletableFutureUtils.thenMAcceptAnyAsync(CompletableFuture, Consumer[]).static <T> CompletableFuture<Void> thenMAcceptAnyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions, Executor executor) Iterable variant ofCompletableFutureUtils.thenMAcceptAnyAsync(CompletableFuture, Executor, Consumer[]).static <T> CompletableFuture<Void> thenMAcceptAnySuccessAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions) Iterable variant ofCompletableFutureUtils.thenMAcceptAnySuccessAsync(CompletableFuture, Consumer[]).static <T> CompletableFuture<Void> thenMAcceptAnySuccessAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions, Executor executor) static <T> CompletableFuture<Void> thenMAcceptAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions) Iterable variant ofCompletableFutureUtils.thenMAcceptAsync(CompletableFuture, Consumer[]).static <T> CompletableFuture<Void> thenMAcceptAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions, Executor executor) Iterable variant ofCompletableFutureUtils.thenMAcceptAsync(CompletableFuture, Executor, Consumer[]).static <T> CompletableFuture<Void> thenMAcceptFailFastAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions) Iterable variant ofCompletableFutureUtils.thenMAcceptFailFastAsync(CompletableFuture, Consumer[]).static <T> CompletableFuture<Void> thenMAcceptFailFastAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions, Executor executor) static <T,U> CompletableFuture <List<U>> thenMApplyAllSuccessAsync(CompletableFuture<? extends T> cfThis, U valueIfFailed, Iterable<? extends Function<? super T, ? extends U>> fns) static <T,U> CompletableFuture <List<U>> thenMApplyAllSuccessAsync(CompletableFuture<? extends T> cfThis, U valueIfFailed, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) static <T,U> CompletableFuture <U> thenMApplyAnyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns) Iterable variant ofCompletableFutureUtils.thenMApplyAnyAsync(CompletableFuture, Function[]).static <T,U> CompletableFuture <U> thenMApplyAnyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) Iterable variant ofCompletableFutureUtils.thenMApplyAnyAsync(CompletableFuture, Executor, Function[]).static <T,U> CompletableFuture <U> thenMApplyAnySuccessAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns) Iterable variant ofCompletableFutureUtils.thenMApplyAnySuccessAsync(CompletableFuture, Function[]).static <T,U> CompletableFuture <U> thenMApplyAnySuccessAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) static <T,U> CompletableFuture <List<U>> thenMApplyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns) Iterable variant ofCompletableFutureUtils.thenMApplyAsync(CompletableFuture, Function[]).static <T,U> CompletableFuture <List<U>> thenMApplyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) Iterable variant ofCompletableFutureUtils.thenMApplyAsync(CompletableFuture, Executor, Function[]).static <T,U> CompletableFuture <List<U>> thenMApplyFailFastAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns) Iterable variant ofCompletableFutureUtils.thenMApplyFailFastAsync(CompletableFuture, Function[]).static <T,U> CompletableFuture <List<U>> thenMApplyFailFastAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) static <T,U> CompletableFuture <List<U>> thenMApplyMostSuccessAsync(CompletableFuture<? extends T> cfThis, U valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Function<? super T, ? extends U>> fns) static <T,U> CompletableFuture <List<U>> thenMApplyMostSuccessAsync(CompletableFuture<? extends T> cfThis, U valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) static CompletableFuture<Void> thenMRunAnyAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.thenMRunAnyAsync(CompletableFuture, Runnable...).static CompletableFuture<Void> thenMRunAnyAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCompletableFutureUtils.thenMRunAnyAsync(CompletableFuture, Executor, Runnable...).static CompletableFuture<Void> thenMRunAnySuccessAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.thenMRunAnySuccessAsync(CompletableFuture, Runnable...).static CompletableFuture<Void> thenMRunAnySuccessAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions, Executor executor) static CompletableFuture<Void> thenMRunAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.thenMRunAsync(CompletableFuture, Runnable...).static CompletableFuture<Void> thenMRunAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCompletableFutureUtils.thenMRunAsync(CompletableFuture, Executor, Runnable...).static CompletableFuture<Void> thenMRunFailFastAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.thenMRunFailFastAsync(CompletableFuture, Runnable...).static CompletableFuture<Void> thenMRunFailFastAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions, Executor executor)
-
Method Details
-
mSupplyFailFastAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<List<T>> mSupplyFailFastAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyFailFastAsync(Supplier[]). -
mSupplyFailFastAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<List<T>> mSupplyFailFastAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCompletableFutureUtils.mSupplyFailFastAsync(Executor, Supplier[]). -
mSupplyAllSuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<List<T>> mSupplyAllSuccessAsync(@Nullable T valueIfFailed, Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyAllSuccessAsync(Object, Supplier[]). -
mSupplyAllSuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<List<T>> mSupplyAllSuccessAsync(@Nullable T valueIfFailed, Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCompletableFutureUtils.mSupplyAllSuccessAsync(Executor, Object, Supplier[]). -
mSupplyMostSuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<List<T>> mSupplyMostSuccessAsync(@Nullable T valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyMostSuccessAsync(Object, long, TimeUnit, Supplier[]). -
mSupplyMostSuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<List<T>> mSupplyMostSuccessAsync(@Nullable T valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) -
mSupplyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<List<T>> mSupplyAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyAsync(Supplier[]). -
mSupplyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<List<T>> mSupplyAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCompletableFutureUtils.mSupplyAsync(Executor, Supplier[]). -
mSupplyAnySuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<T> mSupplyAnySuccessAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyAnySuccessAsync(Supplier[]). -
mSupplyAnySuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<T> mSupplyAnySuccessAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCompletableFutureUtils.mSupplyAnySuccessAsync(Executor, Supplier[]). -
mSupplyAnyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<T> mSupplyAnyAsync(Iterable<? extends Supplier<? extends T>> suppliers) Iterable variant ofCompletableFutureUtils.mSupplyAnyAsync(Supplier[]). -
mSupplyAnyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static <T> CompletableFuture<T> mSupplyAnyAsync(Iterable<? extends Supplier<? extends T>> suppliers, Executor executor) Iterable variant ofCompletableFutureUtils.mSupplyAnyAsync(Executor, Supplier[]). -
mRunFailFastAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static CompletableFuture<Void> mRunFailFastAsync(Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.mRunFailFastAsync(Runnable...). -
mRunFailFastAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static CompletableFuture<Void> mRunFailFastAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCompletableFutureUtils.mRunFailFastAsync(Executor, Runnable...). -
mRunAsync
Iterable variant ofCompletableFutureUtils.mRunAsync(Runnable...). -
mRunAsync
public static CompletableFuture<Void> mRunAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCompletableFutureUtils.mRunAsync(Executor, Runnable...). -
mRunAnySuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static CompletableFuture<Void> mRunAnySuccessAsync(Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.mRunAnySuccessAsync(Runnable...). -
mRunAnySuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static CompletableFuture<Void> mRunAnySuccessAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCompletableFutureUtils.mRunAnySuccessAsync(Executor, Runnable...). -
mRunAnyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static CompletableFuture<Void> mRunAnyAsync(Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.mRunAnyAsync(Runnable...). -
mRunAnyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `mRunAsync`") public static CompletableFuture<Void> mRunAnyAsync(Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCompletableFutureUtils.mRunAnyAsync(Executor, Runnable...). -
allResultsFailFastOf
@Contract(pure=true) public static <T> CompletableFuture<List<T>> allResultsFailFastOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCompletableFutureUtils.allResultsFailFastOf(CompletionStage[]). -
allSuccessResultsOf
@Contract(pure=true) public static <T> CompletableFuture<List<T>> allSuccessResultsOf(@Nullable T valueIfFailed, Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCompletableFutureUtils.allSuccessResultsOf(Object, CompletionStage[]). -
mostSuccessResultsOf
@Contract(pure=true) public static <T> CompletableFuture<List<T>> mostSuccessResultsOf(@Nullable T valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends CompletionStage<? extends T>> cfs) -
mostSuccessResultsOf
@Contract(pure=true) public static <T> CompletableFuture<List<T>> mostSuccessResultsOf(@Nullable T valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends CompletionStage<? extends T>> cfs, Executor executorWhenTimeout) -
allResultsOf
@Contract(pure=true) public static <T> CompletableFuture<List<T>> allResultsOf(Iterable<? extends CompletionStage<? extends T>> cfs) -
allFailFastOf
@Contract(pure=true) public static CompletableFuture<Void> allFailFastOf(Iterable<? extends CompletionStage<?>> cfs) Iterable variant ofCompletableFutureUtils.allFailFastOf(CompletionStage[]). -
allOf
@Contract(pure=true) public static CompletableFuture<Void> allOf(Iterable<? extends CompletionStage<?>> cfs) Iterable variant ofCompletableFutureUtils.allOf(CompletionStage[]). -
anySuccessOf
@Contract(pure=true) public static <T> CompletableFuture<T> anySuccessOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCompletableFutureUtils.anySuccessOf(CompletionStage[]). -
anyOf
@Contract(pure=true) public static <T> CompletableFuture<T> anyOf(Iterable<? extends CompletionStage<? extends T>> cfs) Iterable variant ofCompletableFutureUtils.anyOf(CompletionStage[]). -
thenMApplyFailFastAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<List<U>> thenMApplyFailFastAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns) Iterable variant ofCompletableFutureUtils.thenMApplyFailFastAsync(CompletableFuture, Function[]). -
thenMApplyFailFastAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<List<U>> thenMApplyFailFastAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) -
thenMApplyAllSuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<List<U>> thenMApplyAllSuccessAsync(CompletableFuture<? extends T> cfThis, @Nullable U valueIfFailed, Iterable<? extends Function<? super T, ? extends U>> fns) -
thenMApplyAllSuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<List<U>> thenMApplyAllSuccessAsync(CompletableFuture<? extends T> cfThis, @Nullable U valueIfFailed, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) -
thenMApplyMostSuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<List<U>> thenMApplyMostSuccessAsync(CompletableFuture<? extends T> cfThis, @Nullable U valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Function<? super T, ? extends U>> fns) -
thenMApplyMostSuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<List<U>> thenMApplyMostSuccessAsync(CompletableFuture<? extends T> cfThis, @Nullable U valueIfNotSuccess, long timeout, TimeUnit unit, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) -
thenMApplyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<List<U>> thenMApplyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns) Iterable variant ofCompletableFutureUtils.thenMApplyAsync(CompletableFuture, Function[]). -
thenMApplyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<List<U>> thenMApplyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) Iterable variant ofCompletableFutureUtils.thenMApplyAsync(CompletableFuture, Executor, Function[]). -
thenMApplyAnySuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<U> thenMApplyAnySuccessAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns) Iterable variant ofCompletableFutureUtils.thenMApplyAnySuccessAsync(CompletableFuture, Function[]). -
thenMApplyAnySuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<U> thenMApplyAnySuccessAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) -
thenMApplyAnyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<U> thenMApplyAnyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns) Iterable variant ofCompletableFutureUtils.thenMApplyAnyAsync(CompletableFuture, Function[]). -
thenMApplyAnyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T,U> CompletableFuture<U> thenMApplyAnyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Function<? super T, ? extends U>> fns, Executor executor) Iterable variant ofCompletableFutureUtils.thenMApplyAnyAsync(CompletableFuture, Executor, Function[]). -
thenMAcceptFailFastAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T> CompletableFuture<Void> thenMAcceptFailFastAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions) Iterable variant ofCompletableFutureUtils.thenMAcceptFailFastAsync(CompletableFuture, Consumer[]). -
thenMAcceptFailFastAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T> CompletableFuture<Void> thenMAcceptFailFastAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions, Executor executor) -
thenMAcceptAsync
public static <T> CompletableFuture<Void> thenMAcceptAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions) Iterable variant ofCompletableFutureUtils.thenMAcceptAsync(CompletableFuture, Consumer[]). -
thenMAcceptAsync
public static <T> CompletableFuture<Void> thenMAcceptAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions, Executor executor) Iterable variant ofCompletableFutureUtils.thenMAcceptAsync(CompletableFuture, Executor, Consumer[]). -
thenMAcceptAnySuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T> CompletableFuture<Void> thenMAcceptAnySuccessAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions) Iterable variant ofCompletableFutureUtils.thenMAcceptAnySuccessAsync(CompletableFuture, Consumer[]). -
thenMAcceptAnySuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T> CompletableFuture<Void> thenMAcceptAnySuccessAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions, Executor executor) -
thenMAcceptAnyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T> CompletableFuture<Void> thenMAcceptAnyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions) Iterable variant ofCompletableFutureUtils.thenMAcceptAnyAsync(CompletableFuture, Consumer[]). -
thenMAcceptAnyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMAcceptAsync`") public static <T> CompletableFuture<Void> thenMAcceptAnyAsync(CompletableFuture<? extends T> cfThis, Iterable<? extends Consumer<? super T>> actions, Executor executor) Iterable variant ofCompletableFutureUtils.thenMAcceptAnyAsync(CompletableFuture, Executor, Consumer[]). -
thenMRunFailFastAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMRunAsync`") public static CompletableFuture<Void> thenMRunFailFastAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.thenMRunFailFastAsync(CompletableFuture, Runnable...). -
thenMRunFailFastAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMRunAsync`") public static CompletableFuture<Void> thenMRunFailFastAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions, Executor executor) -
thenMRunAsync
public static CompletableFuture<Void> thenMRunAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.thenMRunAsync(CompletableFuture, Runnable...). -
thenMRunAsync
public static CompletableFuture<Void> thenMRunAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCompletableFutureUtils.thenMRunAsync(CompletableFuture, Executor, Runnable...). -
thenMRunAnySuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMRunAsync`") public static CompletableFuture<Void> thenMRunAnySuccessAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.thenMRunAnySuccessAsync(CompletableFuture, Runnable...). -
thenMRunAnySuccessAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMRunAsync`") public static CompletableFuture<Void> thenMRunAnySuccessAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions, Executor executor) -
thenMRunAnyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMRunAsync`") public static CompletableFuture<Void> thenMRunAnyAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions) Iterable variant ofCompletableFutureUtils.thenMRunAnyAsync(CompletableFuture, Runnable...). -
thenMRunAnyAsync
@CheckReturnValue(explanation="should use the returned CompletableFuture; otherwise, prefer simple method `thenMRunAsync`") public static CompletableFuture<Void> thenMRunAnyAsync(CompletableFuture<?> cfThis, Iterable<? extends Runnable> actions, Executor executor) Iterable variant ofCompletableFutureUtils.thenMRunAnyAsync(CompletableFuture, Executor, Runnable...).
-