Package io.foldright.cffu2
@DefaultAnnotation(edu.umd.cs.findbugs.annotations.NonNull.class)
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
package io.foldright.cffu2
A tiny 0-dependency library that improves the CompletableFuture(CF) usage experience and reduces misuse,
enabling more convenient, efficient, and safe use of `CF` in your application. 😋🚀🦺
- The core classes are
Cffu
/CffuFactory
. - the core util class
CompletableFutureUtils
ofCompletableFuture
contains the enhanced and backport methods forCompletableFuture
.
- Author:
- Jerry Lee (oldratlee at gmail dot com)
- See Also:
-
ClassDescriptionCffu<T>This class
Cffu
is the equivalent class toCompletableFuture
, contains the equivalent instance methods ofCompletionStage
andCompletableFuture
.This classCffuFactory
is equivalent toCompletableFuture
, contains the static (factory) methods ofCompletableFuture
.This class is the same asFuture.State
, existed for java version compatibility.This utility class providesIterable
-based variants (includingCollection
,List
, etc.) of same-named varargs methods fromCompletableFutureUtils
.Utility class for async parallel data processing using CompletableFuture.This Utility class provides tuple-based variants of methods fromCompletableFutureUtils
for processing and composing multiple asynchronous actions and CompletableFutures in a type-safe manner.Utility class providing enhanced and backport methods forCompletableFuture
.Low Level CompletableFuture utility methods for manipulating CompletableFuture.Cffu with result typeIterable
(aka.Exception indicates that NO cfs(CompletionStage
, including subclassCffu
/CompletableFuture
) are provided for methods that require cf arguments.