Skip to content

Commit

Permalink
! update after release v1.0.0-Alpha7
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed May 26, 2024
1 parent 077b4aa commit ea9bfcb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<a href="https://gitpod.io/#https://github.com/foldright/cffu"><img src="https://img.shields.io/badge/Gitpod-ready to code-339933?label=gitpod&logo=gitpod&logoColor=white" alt="gitpod: Ready to Code"></a>
</p>

👉 `cffu``CompletableFuture Fu` 🦝)是一个小小的[`CompletableFuture(CF)`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/concurrent/CompletableFuture.html)辅助增强库,提升`CF`使用体验并减少误用,期望在业务中更方便高效安全地使用`CF`
👉 `cffu``CompletableFuture Fu` 🦝)是一个小小的[`CompletableFuture(CF)`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/concurrent/CompletableFuture.html)辅助增强库,提升`CF`使用体验并减少误用,在业务中更方便高效安全地使用`CF`

欢迎 👏 💖

Expand Down Expand Up @@ -560,18 +560,18 @@ public class ConcurrencyStrategyDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu</artifactId>
<version>1.0.0-Alpha6</version>
<version>1.0.0-Alpha7</version>
</dependency>
```
- For `Gradle` projects:

```groovy
// Gradle Kotlin DSL
implementation("io.foldright:cffu:1.0.0-Alpha6")
implementation("io.foldright:cffu:1.0.0-Alpha7")
```
```groovy
// Gradle Groovy DSL
implementation 'io.foldright:cffu:1.0.0-Alpha6'
implementation 'io.foldright:cffu:1.0.0-Alpha7'
```
- `cffu Kotlin`支持库:
- For `Maven` projects:
Expand All @@ -580,18 +580,18 @@ public class ConcurrencyStrategyDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-kotlin</artifactId>
<version>1.0.0-Alpha6</version>
<version>1.0.0-Alpha7</version>
</dependency>
```
- For `Gradle` projects:

```groovy
// Gradle Kotlin DSL
implementation("io.foldright:cffu-kotlin:1.0.0-Alpha6")
implementation("io.foldright:cffu-kotlin:1.0.0-Alpha7")
```
```groovy
// Gradle Groovy DSL
implementation 'io.foldright:cffu-kotlin:1.0.0-Alpha6'
implementation 'io.foldright:cffu-kotlin:1.0.0-Alpha7'
```
- `cffu bom`:
- For `Maven` projects:
Expand All @@ -600,7 +600,7 @@ public class ConcurrencyStrategyDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-bom</artifactId>
<version>1.0.0-Alpha6</version>
<version>1.0.0-Alpha7</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -609,11 +609,11 @@ public class ConcurrencyStrategyDemo {

```groovy
// Gradle Kotlin DSL
implementation(platform("io.foldright:cffu-bom:1.0.0-Alpha6"))
implementation(platform("io.foldright:cffu-bom:1.0.0-Alpha7"))
```
```groovy
// Gradle Groovy DSL
implementation platform('io.foldright:cffu-bom:1.0.0-Alpha6')
implementation platform('io.foldright:cffu-bom:1.0.0-Alpha7')
```
- [📌 `TransmittableThreadLocal(TTL)`](https://github.com/alibaba/transmittable-thread-local)的[`cffu executor wrapper SPI`实现](cffu-ttl-executor-wrapper):
- For `Maven` projects:
Expand All @@ -622,19 +622,19 @@ public class ConcurrencyStrategyDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-ttl-executor-wrapper</artifactId>
<version>1.0.0-Alpha6</version>
<version>1.0.0-Alpha7</version>
<scope>runtime</scope>
</dependency>
```
- For `Gradle` projects:

```groovy
// Gradle Kotlin DSL
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha6")
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha7")
```
```groovy
// Gradle Groovy DSL
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha6'
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha7'
```

# 📚 更多资料
Expand All @@ -645,7 +645,7 @@ public class ConcurrencyStrategyDemo {
- [`CompletableFuture` Guide](docs/completable-future-guide.md)
- 完备说明`CompletableFuture`的使用方式
- 给出 最佳实践建议 与 使用陷阱注意
- 期望在业务中,更有效安全地使用`CompletableFuture`
- 在业务中,更有效安全地使用`CompletableFuture`

# 👋 关于库名

Expand Down
4 changes: 2 additions & 2 deletions cffu-core/src/main/java/io/foldright/cffu/Cffu.java
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ public Cffu<T> orTimeout(Executor executorWhenTimeout, long timeout, TimeUnit un
* Exceptionally completes given Cffu with a {@link TimeoutException}
* if not otherwise completed before the given timeout.
* <p>
* <strong>CAUTION:<br></strong> This method is <strong>UNSAFE</strong>!
* <strong>CAUTION:</strong> This method is <strong>UNSAFE</strong>!
* <p>
* When triggered by timeout, the subsequent non-async actions of the dependent cfs
* are performed in the <strong>SINGLE thread builtin executor</strong>
Expand Down Expand Up @@ -1033,7 +1033,7 @@ public Cffu<T> completeOnTimeout(@Nullable T value, Executor executorWhenTimeout
/**
* Completes given Cffu with the given value if not otherwise completed before the given timeout.
* <p>
* <strong>CAUTION:<br></strong> This method is <strong>UNSAFE</strong>!
* <strong>CAUTION:</strong> This method is <strong>UNSAFE</strong>!
* <p>
* When triggered by timeout, the subsequent non-async actions of the dependent cfs
* are performed in the <strong>SINGLE thread builtin executor</strong>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ public static <C extends CompletableFuture<?>> C cffuOrTimeout(
* Exceptionally completes given CompletableFuture with a {@link TimeoutException}
* if not otherwise completed before the given timeout.
* <p>
* <strong>CAUTION:<br></strong> This method and {@link CompletableFuture#orTimeout(long, TimeUnit)}
* <strong>CAUTION:</strong> This method and {@link CompletableFuture#orTimeout(long, TimeUnit)}
* is <strong>UNSAFE</strong>!
* <p>
* When triggered by timeout, the subsequent non-async actions of the dependent CompletableFutures
Expand Down Expand Up @@ -1563,7 +1563,7 @@ C cffuCompleteOnTimeout(C cf, @Nullable T value, Executor executorWhenTimeout, l
/**
* Completes given CompletableFuture with the given value if not otherwise completed before the given timeout.
* <p>
* <strong>CAUTION:<br></strong> This method and {@link CompletableFuture#completeOnTimeout(Object, long, TimeUnit)}
* <strong>CAUTION:</strong> This method and {@link CompletableFuture#completeOnTimeout(Object, long, TimeUnit)}
* is <strong>UNSAFE</strong>!
* <p>
* When triggered by timeout, the subsequent non-async actions of the dependent CompletableFutures
Expand Down
6 changes: 3 additions & 3 deletions cffu-ttl-executor-wrapper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ For `Maven` projects:
<groupId>io.foldright</groupId>
<artifactId>cffu-ttl-executor-wrapper</artifactId>
<scope>runtime</scope>
<version>1.0.0-Alpha6</version>
<version>1.0.0-Alpha7</version>
</dependency>
```

For `Gradle` projects:

```groovy
// Gradle Kotlin DSL
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha6")
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha7")
```

```groovy
// Gradle Groovy DSL
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha6'
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.0-Alpha7'
```

`cffu-ttl-executor-wrapper` has published to maven central, find the latest version at
Expand Down

0 comments on commit ea9bfcb

Please sign in to comment.