Skip to content

v1.0.0-Alpha2 🦝 🧬

Compare
Choose a tag to compare
@oldratlee oldratlee released this 28 Apr 19:09
· 265 commits to main since this release

shifu

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

  • add new CompletableFutureUtils.allOf() method ⛓
    • with more generic parameter type(CompletionStage) comparing to CompletableFuture.allOf() method 🧬

🛠 Refactor/Improvements

  • ⚠️ rename asCffu() methods to toCffu() 🦝
    • so the naming style is consistant with CompletionStage#toCompletableFuture()
  • ⚠️ move static util methods toCompletableFutureArray()/completableFutureListToArray() to class CompletableFutureUtils from CffuFactory
  • extract private method CompletableFutureUtils#createResultSetterCfs() 🔧 ✨
  • use private method CompletableFutureUtils#requireCfsAndEleNonNull() to capture varargs instead of hand rewriting the varargs 🔧 ✨
  • static import Function.identity function 💅

🔌 API Doc

🍪 Maven dependency

cffu core lib, including cffu enhancement for Java CompletableFuture:

<dependency>
    <groupId>io.foldright</groupId>
    <artifactId>cffu</artifactId>
    <version>1.0.0-Alpha2</version>
</dependency>

cffu Kotlin support lib:

<dependency>
    <groupId>io.foldright</groupId>
    <artifactId>cffu-kotlin</artifactId>
    <version>1.0.0-Alpha2</version>
</dependency>

cffu bom:

<dependency>
    <groupId>io.foldright</groupId>
    <artifactId>cffu-bom</artifactId>
    <version>1.0.0-Alpha2</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-Alpha2</version>
  <scope>runtime</scope>
</dependency>