Skip to content

v1.0.0-Alpha19 🦝 ⏰

Compare
Choose a tag to compare
@oldratlee oldratlee released this 17 Aug 15:35
· 67 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"~ πŸ˜†

πŸ›  Refactor/Improvements

  • CompletableFutureUtils merges the JDK bugfix "CompletableFuture.orTimeout leaks if the future completes exceptionally" for Java 8 ⏰🐞 (by @linzee1)
  • perf(CompletableFutureUtils): remove unnecessary copy for SINGLE cf input, because there is a subsequent thenApply operation which returns a new cf
  • refactor(ListenableFutureUtils): simplify cancel of CompletableFutureAdapter, just return cancel result of CompletableFutureAdapter

πŸ§ͺ Tests

  • add test case of thread interruption check to ListenableFutureUtils#toCompletableFuture 🧡 (by @linzee1)
  • rename var with short name in test codes, short code line is more readable in tedious test codes

🚜 Build/Chore

  • upgrade dependencies/plugins πŸ› οΈ
    • upgrade Kotlin to K2 🍩 πŸ’•

πŸ”Œ API Doc

πŸͺ Maven dependencies

cffu core lib, including cffu enhancement for Java CompletableFuture:

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

cffu Kotlin support lib:

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

cffu bom:

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