v1.0.0-Alpha7 π¦ β¨
Note
π¦ Cffu
has arrived at v1.0 Alpha
series~ π
- Development will try to keep the compatibility for main API. πΎ
- The incompatible changes are marked with
β οΈ .
Welcome to try out cffu
. π
π Happy with cffu
! π¦ and be a "shifu"~ π
βοΈ Features
- implement new safe methods
cffuOrTimeout
/cffuCompleteOnTimeout
β³ β¨ - implement new
mostTupleOfSuccess
methods π β¨ - implement new
completeExceptionallyAsync
methods π£ βοΈ - the
mostOf*
methods use the new safeorTimeout
method with parameterexecutorWhenTimeout
π β¨
π Bug Fixes
- fix
UnsupportedOperationException
for the singleminimal stage
input π£
π Refactor/Improvements
β οΈ changegetSuccessNow
method parameter type toCompletableFuture
fromCompletionStage
β οΈ changeresultNow/exceptionNow/state
methods to more generic parameter type(Future
) inCompletableFutureUtils
π§¬β οΈ removetuple*
methods inCffu
/CompletableFutureExtensions.kt
π§Ή- fix: add missing
minimal stage
check forCffu#getSuccessNow()
method π - the factory methods of
CffuFactory
usenew0()
instead ofdummy()
, less instance creation and delegation β‘οΈ - add internal helper method
hopAsyncIf
β¨ - add internal helper methods
toNonMinCfCopy
/isMinStageCf
β¨ - rename internal factory method names of
CffuFactory
tocreate*
fromnew*
π
π§ͺ Test
- add
minimal stage
check test cases forallOf*
/mostOf*
/anyOf*
/allTupleOf*
/mostTupleOf*
methods π
π API Doc
cffu Java API doc
: https://foldright.io/api-docs/cffu/1.0.0-Alpha7/cffu Kotlin API doc
: https://foldright.io/api-docs/cffu-kotlin/1.0.0-Alpha7/
πͺ Maven dependency
cffu
core lib, including cffu
enhancement for Java CompletableFuture
:
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu</artifactId>
<version>1.0.0-Alpha7</version>
</dependency>
cffu
Kotlin
support lib:
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-kotlin</artifactId>
<version>1.0.0-Alpha7</version>
</dependency>
cffu bom
:
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-bom</artifactId>
<version>1.0.0-Alpha7</version>
<type>pom</type>
<scope>import</scope>
</dependency>
cffu executor wrapper SPI implementation
for π TransmittableThreadLocal(TTL)
:
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-ttl-executor-wrapper</artifactId>
<version>1.0.0-Alpha7</version>
<scope>runtime</scope>
</dependency>