Skip to content

Commit f0c20f8

Browse files
committed
chore: update after release v1.1.0📦
1 parent 0fe353c commit f0c20f8

File tree

5 files changed

+35
-35
lines changed

5 files changed

+35
-35
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
177177
2\) 如果不能修改使用`CompletableFuture`的代码(如其它库返回的`CF`
178178

179-
使用[`CffuFactory.toCffu(CompletionStage)`方法](https://foldright.io/api-docs/cffu/1.0.3/io/foldright/cffu/CffuFactory.html#toCffu(java.util.concurrent.CompletionStage)),将`CompletableFuture``CompletionStage`转换成`Cffu`类型。
179+
使用[`CffuFactory.toCffu(CompletionStage)`方法](https://foldright.io/api-docs/cffu/1.1.0/io/foldright/cffu/CffuFactory.html#toCffu(java.util.concurrent.CompletionStage)),将`CompletableFuture``CompletionStage`转换成`Cffu`类型。
180180

181181
### 1.3 库依赖(包含`CompletableFutureUtils`工具类)
182182

@@ -186,18 +186,18 @@
186186
<dependency>
187187
<groupId>io.foldright</groupId>
188188
<artifactId>cffu</artifactId>
189-
<version>1.0.3</version>
189+
<version>1.1.0</version>
190190
</dependency>
191191
```
192192
- For `Gradle` projects:
193193

194194
Gradle Kotlin DSL
195195
```groovy
196-
implementation("io.foldright:cffu:1.0.3")
196+
implementation("io.foldright:cffu:1.1.0")
197197
```
198198
Gradle Groovy DSL
199199
```groovy
200-
implementation 'io.foldright:cffu:1.0.3'
200+
implementation 'io.foldright:cffu:1.1.0'
201201
```
202202

203203
> `cffu`也支持`Kotlin`扩展方法的使用方式,参见[`cffu-kotlin/README.md`](cffu-kotlin/README.md);使用方式的对比示例参见[`docs/usage-mode-demo.md`](docs/usage-mode-demo.md)
@@ -544,7 +544,7 @@ public class MultipleActionsDemo {
544544

545545
应该只处理当前业务自己清楚明确能恢复的具体异常,由外层处理其它的异常;避免掩盖Bug或是错误地处理了自己不能恢复的异常。
546546

547-
`cffu`提供了相应的[`catching*`方法](https://foldright.io/api-docs/cffu/1.0.3/io/foldright/cffu/CompletableFutureUtils.html#catching(C,java.lang.Class,java.util.function.Function)),支持指定要处理异常类型;相比`CF#exceptionally`方法新加了一个异常类型参数,使用方式类似,不附代码示例。
547+
`cffu`提供了相应的[`catching*`方法](https://foldright.io/api-docs/cffu/1.1.0/io/foldright/cffu/CompletableFutureUtils.html#catching(C,java.lang.Class,java.util.function.Function)),支持指定要处理异常类型;相比`CF#exceptionally`方法新加了一个异常类型参数,使用方式类似,不附代码示例。
548548

549549
### 2.6 `Backport`支持`Java 8`
550550

@@ -571,18 +571,18 @@ public class MultipleActionsDemo {
571571

572572
`cffu`库提供了超时执行安全的新实现方法:
573573

574-
- [`Cffu#orTimeout()`](https://foldright.io/api-docs/cffu/1.0.3/io/foldright/cffu/Cffu.html#orTimeout(long,java.util.concurrent.TimeUnit))
575-
/ [`Cffu#completeOnTimeoutTimeout()`](https://foldright.io/api-docs/cffu/1.0.3/io/foldright/cffu/Cffu.html#completeOnTimeout(java.lang.Object,long,java.util.concurrent.TimeUnit))
576-
- [`CFU#cffuOrTimeout()`](https://foldright.io/api-docs/cffu/1.0.3/io/foldright/cffu/CompletableFutureUtils.html#cffuOrTimeout(C,long,java.util.concurrent.TimeUnit))
577-
/ [`CFU#cffuCompleteOnTimeout()`](https://foldright.io/api-docs/cffu/1.0.3/io/foldright/cffu/CompletableFutureUtils.html#cffuCompleteOnTimeout(C,T,long,java.util.concurrent.TimeUnit))
574+
- [`Cffu#orTimeout()`](https://foldright.io/api-docs/cffu/1.1.0/io/foldright/cffu/Cffu.html#orTimeout(long,java.util.concurrent.TimeUnit))
575+
/ [`Cffu#completeOnTimeoutTimeout()`](https://foldright.io/api-docs/cffu/1.1.0/io/foldright/cffu/Cffu.html#completeOnTimeout(java.lang.Object,long,java.util.concurrent.TimeUnit))
576+
- [`CFU#cffuOrTimeout()`](https://foldright.io/api-docs/cffu/1.1.0/io/foldright/cffu/CompletableFutureUtils.html#cffuOrTimeout(C,long,java.util.concurrent.TimeUnit))
577+
/ [`CFU#cffuCompleteOnTimeout()`](https://foldright.io/api-docs/cffu/1.1.0/io/foldright/cffu/CompletableFutureUtils.html#cffuCompleteOnTimeout(C,T,long,java.util.concurrent.TimeUnit))
578578

579579
保证业务逻辑不会在`CF`的单线程`ScheduledThreadPoolExecutor`中执行。
580580

581581
更多说明参见:
582582

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

587587
### 2.8 支持超时的`join`方法
588588

@@ -637,18 +637,18 @@ public class MultipleActionsDemo {
637637
<dependency>
638638
<groupId>io.foldright</groupId>
639639
<artifactId>cffu</artifactId>
640-
<version>1.0.3</version>
640+
<version>1.1.0</version>
641641
</dependency>
642642
```
643643
- For `Gradle` projects:
644644

645645
Gradle Kotlin DSL
646646
```groovy
647-
implementation("io.foldright:cffu:1.0.3")
647+
implementation("io.foldright:cffu:1.1.0")
648648
```
649649
Gradle Groovy DSL
650650
```groovy
651-
implementation 'io.foldright:cffu:1.0.3'
651+
implementation 'io.foldright:cffu:1.1.0'
652652
```
653653
- [📌 `TransmittableThreadLocal(TTL)`](https://github.com/alibaba/transmittable-thread-local)的[`cffu executor wrapper SPI`实现](cffu-ttl-executor-wrapper):
654654
- For `Maven` projects:
@@ -657,19 +657,19 @@ public class MultipleActionsDemo {
657657
<dependency>
658658
<groupId>io.foldright</groupId>
659659
<artifactId>cffu-ttl-executor-wrapper</artifactId>
660-
<version>1.0.3</version>
660+
<version>1.1.0</version>
661661
<scope>runtime</scope>
662662
</dependency>
663663
```
664664
- For `Gradle` projects:
665665

666666
Gradle Kotlin DSL
667667
```groovy
668-
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.3")
668+
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.1.0")
669669
```
670670
Gradle Groovy DSL
671671
```groovy
672-
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.3'
672+
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.1.0'
673673
```
674674
- `cffu bom`:
675675
- For `Maven` projects:
@@ -678,7 +678,7 @@ public class MultipleActionsDemo {
678678
<dependency>
679679
<groupId>io.foldright</groupId>
680680
<artifactId>cffu-bom</artifactId>
681-
<version>1.0.3</version>
681+
<version>1.1.0</version>
682682
<type>pom</type>
683683
<scope>import</scope>
684684
</dependency>
@@ -687,11 +687,11 @@ public class MultipleActionsDemo {
687687

688688
Gradle Kotlin DSL
689689
```groovy
690-
implementation(platform("io.foldright:cffu-bom:1.0.3"))
690+
implementation(platform("io.foldright:cffu-bom:1.1.0"))
691691
```
692692
Gradle Groovy DSL
693693
```groovy
694-
implementation platform('io.foldright:cffu-bom:1.0.3')
694+
implementation platform('io.foldright:cffu-bom:1.1.0')
695695
```
696696

697697
# 📚 更多资料

README_EN.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,18 +605,18 @@ Current version of `Java API` documentation: https://foldright.io/api-docs/cffu/
605605
<dependency>
606606
<groupId>io.foldright</groupId>
607607
<artifactId>cffu</artifactId>
608-
<version>1.0.3</version>
608+
<version>1.1.0</version>
609609
</dependency>
610610
```
611611
- For `Gradle` projects:
612612

613613
Gradle Kotlin DSL
614614
```groovy
615-
implementation("io.foldright:cffu:1.0.3")
615+
implementation("io.foldright:cffu:1.1.0")
616616
```
617617
Gradle Groovy DSL
618618
```groovy
619-
implementation 'io.foldright:cffu:1.0.3'
619+
implementation 'io.foldright:cffu:1.1.0'
620620
```
621621
- [📌 `TransmittableThreadLocal(TTL)`](https://github.com/alibaba/transmittable-thread-local) implementation for [`cffu executor wrapper SPI`](cffu-ttl-executor-wrapper):
622622
- For `Maven` projects:
@@ -625,19 +625,19 @@ Current version of `Java API` documentation: https://foldright.io/api-docs/cffu/
625625
<dependency>
626626
<groupId>io.foldright</groupId>
627627
<artifactId>cffu-ttl-executor-wrapper</artifactId>
628-
<version>1.0.3</version>
628+
<version>1.1.0</version>
629629
<scope>runtime</scope>
630630
</dependency>
631631
```
632632
- For `Gradle` projects:
633633

634634
Gradle Kotlin DSL
635635
```groovy
636-
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.3")
636+
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.1.0")
637637
```
638638
Gradle Groovy DSL
639639
```groovy
640-
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.3'
640+
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.1.0'
641641
```
642642

643643
# 📚 See also

cffu-kotlin/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ This module provides the extension methods to leverage Kotlin language.
2222
<dependency>
2323
<groupId>io.foldright</groupId>
2424
<artifactId>cffu-kotlin</artifactId>
25-
<version>1.0.3-Alpha</version>
25+
<version>1.1.0-Alpha</version>
2626
</dependency>
2727
```
2828
- For `Gradle` projects:
2929

3030
Gradle Kotlin DSL
3131
```groovy
32-
implementation("io.foldright:cffu-kotlin:1.0.3-Alpha")
32+
implementation("io.foldright:cffu-kotlin:1.1.0-Alpha")
3333
```
3434
Gradle Groovy DSL
3535
```groovy
36-
implementation 'io.foldright:cffu-kotlin:1.0.3-Alpha'
36+
implementation 'io.foldright:cffu-kotlin:1.1.0-Alpha'
3737
```

cffu-listenable-future/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
<dependency>
2020
<groupId>io.foldright</groupId>
2121
<artifactId>cffu-listenable-future</artifactId>
22-
<version>1.0.3-Alpha</version>
22+
<version>1.1.0-Alpha</version>
2323
</dependency>
2424
```
2525
- For `Gradle` projects:
2626

2727
Gradle Kotlin DSL
2828
```groovy
29-
implementation("io.foldright:cffu-listenable-future:1.0.3-Alpha")
29+
implementation("io.foldright:cffu-listenable-future:1.1.0-Alpha")
3030
```
3131
Gradle Groovy DSL
3232
```groovy
33-
implementation 'io.foldright:cffu-listenable-future:1.0.3-Alpha'
33+
implementation 'io.foldright:cffu-listenable-future:1.1.0-Alpha'
3434
```

cffu-ttl-executor-wrapper/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ This dependency should only be used at `Runtime`.
2424
<groupId>io.foldright</groupId>
2525
<artifactId>cffu-ttl-executor-wrapper</artifactId>
2626
<scope>runtime</scope>
27-
<version>1.0.3</version>
27+
<version>1.1.0</version>
2828
</dependency>
2929
```
3030
- For `Gradle` projects:
3131

3232
Gradle Kotlin DSL
3333
```groovy
34-
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.3")
34+
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.1.0")
3535
```
3636
Gradle Groovy DSL
3737
```groovy
38-
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.3'
38+
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.1.0'
3939
```
4040

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

0 commit comments

Comments
 (0)