Skip to content

Commit

Permalink
chore: update after release v1.0.0-Alpha32 📦
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Jan 1, 2025
1 parent 3d9df95 commit 32383db
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 31 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,18 @@
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu</artifactId>
<version>1.0.0-Alpha31</version>
<version>1.0.0-Alpha32</version>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
implementation("io.foldright:cffu:1.0.0-Alpha31")
implementation("io.foldright:cffu:1.0.0-Alpha32")
```
Gradle Groovy DSL
```groovy
implementation 'io.foldright:cffu:1.0.0-Alpha31'
implementation 'io.foldright:cffu:1.0.0-Alpha32'
```

> `cffu`也支持`Kotlin`扩展方法的使用方式,参见[`cffu-kotlin/README.md`](cffu-kotlin/README.md);使用方式的对比示例参见[`docs/usage-mode-demo.md`](docs/usage-mode-demo.md)
Expand Down Expand Up @@ -513,16 +513,16 @@ public class MultipleActionsDemo {
- 业务功能的正确性问题
- 系统稳定性问题,如导致线程中等待操作不能返回、耗尽线程池

`cffu`提供了超时执行安全的新实现方法 [`cffuOrTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha31/io/foldright/cffu/CompletableFutureUtils.html#cffuOrTimeout(C,long,java.util.concurrent.TimeUnit))
/ [`cffuCompleteOnTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha31/io/foldright/cffu/CompletableFutureUtils.html#cffuCompleteOnTimeout(C,T,long,java.util.concurrent.TimeUnit))
`cffu`提供了超时执行安全的新实现方法 [`cffuOrTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha32/io/foldright/cffu/CompletableFutureUtils.html#cffuOrTimeout(C,long,java.util.concurrent.TimeUnit))
/ [`cffuCompleteOnTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha32/io/foldright/cffu/CompletableFutureUtils.html#cffuCompleteOnTimeout(C,T,long,java.util.concurrent.TimeUnit))


更多说明参见:

- 演示问题的[`DelayDysfunctionDemo.java`](https://github.com/foldright/cffu/blob/main/cffu-core/src/test/java/io/foldright/demo/CfDelayDysfunctionDemo.java)
- `cffu backport`方法的`JavaDoc`
- [`orTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha31/io/foldright/cffu/CompletableFutureUtils.html#orTimeout(C,long,java.util.concurrent.TimeUnit))
- [`completeOnTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha31/io/foldright/cffu/CompletableFutureUtils.html#completeOnTimeout(C,T,long,java.util.concurrent.TimeUnit))
- [`orTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha32/io/foldright/cffu/CompletableFutureUtils.html#orTimeout(C,long,java.util.concurrent.TimeUnit))
- [`completeOnTimeout()`](https://foldright.io/api-docs/cffu/1.0.0-Alpha32/io/foldright/cffu/CompletableFutureUtils.html#completeOnTimeout(C,T,long,java.util.concurrent.TimeUnit))

### 2.7 支持超时的`join`的方法

Expand Down Expand Up @@ -589,18 +589,18 @@ public class MultipleActionsDemo {
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu</artifactId>
<version>1.0.0-Alpha31</version>
<version>1.0.0-Alpha32</version>
</dependency>
```
- For `Gradle` projects:

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

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

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

# 📚 更多资料
Expand Down
12 changes: 6 additions & 6 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,18 +605,18 @@ Current version of `Java API` documentation: https://foldright.io/api-docs/cffu/
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu</artifactId>
<version>1.0.0-Alpha31</version>
<version>1.0.0-Alpha32</version>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
implementation("io.foldright:cffu:1.0.0-Alpha31")
implementation("io.foldright:cffu:1.0.0-Alpha32")
```
Gradle Groovy DSL
```groovy
implementation 'io.foldright:cffu:1.0.0-Alpha31'
implementation 'io.foldright:cffu:1.0.0-Alpha32'
```
- [📌 `TransmittableThreadLocal(TTL)`](https://github.com/alibaba/transmittable-thread-local) implementation for [`cffu executor wrapper SPI`](cffu-ttl-executor-wrapper):
- For `Maven` projects:
Expand All @@ -625,19 +625,19 @@ Current version of `Java API` documentation: https://foldright.io/api-docs/cffu/
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-ttl-executor-wrapper</artifactId>
<version>1.0.0-Alpha31</version>
<version>1.0.0-Alpha32</version>
<scope>runtime</scope>
</dependency>
```
- For `Gradle` projects:

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

# 📚 See also
Expand Down
6 changes: 3 additions & 3 deletions cffu-kotlin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ This module provides the extension methods to leverage Kotlin language.
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-kotlin</artifactId>
<version>1.0.0-Alpha31</version>
<version>1.0.0-Alpha32</version>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
implementation("io.foldright:cffu-kotlin:1.0.0-Alpha31")
implementation("io.foldright:cffu-kotlin:1.0.0-Alpha32")
```
Gradle Groovy DSL
```groovy
implementation 'io.foldright:cffu-kotlin:1.0.0-Alpha31'
implementation 'io.foldright:cffu-kotlin:1.0.0-Alpha32'
```
6 changes: 3 additions & 3 deletions cffu-listenable-future/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
<dependency>
<groupId>io.foldright</groupId>
<artifactId>cffu-listenable-future</artifactId>
<version>1.0.0-Alpha31</version>
<version>1.0.0-Alpha32</version>
</dependency>
```
- For `Gradle` projects:

Gradle Kotlin DSL
```groovy
implementation("io.foldright:cffu-listenable-future:1.0.0-Alpha31")
implementation("io.foldright:cffu-listenable-future:1.0.0-Alpha32")
```
Gradle Groovy DSL
```groovy
implementation 'io.foldright:cffu-listenable-future:1.0.0-Alpha31'
implementation 'io.foldright:cffu-listenable-future:1.0.0-Alpha32'
```
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,18 +18,18 @@ This dependency should only be used at `Runtime`.
<groupId>io.foldright</groupId>
<artifactId>cffu-ttl-executor-wrapper</artifactId>
<scope>runtime</scope>
<version>1.0.0-Alpha31</version>
<version>1.0.0-Alpha32</version>
</dependency>
```
- For `Gradle` projects:

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

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

0 comments on commit 32383db

Please sign in to comment.