Skip to content

Commit 645e0ec

Browse files
committed
! bump version to v1.0.3
1 parent 1b73269 commit 645e0ec

File tree

14 files changed

+45
-45
lines changed

14 files changed

+45
-45
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
174174
2\) 如果不能修改使用`CF`的代码(如引用其它的库返回的`CF`类型)
175175

176-
使用[`CffuFactory.toCffu(CompletionStage)`方法](https://foldright.io/api-docs/cffu/1.0.2/io/foldright/cffu/CffuFactory.html#toCffu(java.util.concurrent.CompletionStage)),将`CompletableFuture``CompletionStage`转换成`Cffu`类型。
176+
使用[`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`类型。
177177

178178
### 1.3 库依赖(包含`CompletableFutureUtils`工具类)
179179

@@ -183,18 +183,18 @@
183183
<dependency>
184184
<groupId>io.foldright</groupId>
185185
<artifactId>cffu</artifactId>
186-
<version>1.0.2</version>
186+
<version>1.0.3</version>
187187
</dependency>
188188
```
189189
- For `Gradle` projects:
190190

191191
Gradle Kotlin DSL
192192
```groovy
193-
implementation("io.foldright:cffu:1.0.2")
193+
implementation("io.foldright:cffu:1.0.3")
194194
```
195195
Gradle Groovy DSL
196196
```groovy
197-
implementation 'io.foldright:cffu:1.0.2'
197+
implementation 'io.foldright:cffu:1.0.3'
198198
```
199199

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

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

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

519519
### 2.6 `Backport`支持`Java 8`
520520

@@ -539,16 +539,16 @@ public class MultipleActionsDemo {
539539
- 业务功能的正确性问题
540540
- 系统稳定性问题,如线程中等待操作不能返回、其它有依赖的`CF`不能完成、线程池耗尽与内存泄露
541541

542-
`cffu`提供了超时执行安全的新实现方法 [`cffuOrTimeout()`](https://foldright.io/api-docs/cffu/1.0.2/io/foldright/cffu/CompletableFutureUtils.html#cffuOrTimeout(C,long,java.util.concurrent.TimeUnit))
543-
/ [`cffuCompleteOnTimeout()`](https://foldright.io/api-docs/cffu/1.0.2/io/foldright/cffu/CompletableFutureUtils.html#cffuCompleteOnTimeout(C,T,long,java.util.concurrent.TimeUnit)),保证业务逻辑不会在`CF`的单线程`ScheduledThreadPoolExecutor`中执行。
542+
`cffu`提供了超时执行安全的新实现方法 [`cffuOrTimeout()`](https://foldright.io/api-docs/cffu/1.0.3/io/foldright/cffu/CompletableFutureUtils.html#cffuOrTimeout(C,long,java.util.concurrent.TimeUnit))
543+
/ [`cffuCompleteOnTimeout()`](https://foldright.io/api-docs/cffu/1.0.3/io/foldright/cffu/CompletableFutureUtils.html#cffuCompleteOnTimeout(C,T,long,java.util.concurrent.TimeUnit)),保证业务逻辑不会在`CF`的单线程`ScheduledThreadPoolExecutor`中执行。
544544

545545

546546
更多说明参见:
547547

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

553553
### 2.8 支持超时的`join`的方法
554554

@@ -603,18 +603,18 @@ public class MultipleActionsDemo {
603603
<dependency>
604604
<groupId>io.foldright</groupId>
605605
<artifactId>cffu</artifactId>
606-
<version>1.0.2</version>
606+
<version>1.0.3</version>
607607
</dependency>
608608
```
609609
- For `Gradle` projects:
610610

611611
Gradle Kotlin DSL
612612
```groovy
613-
implementation("io.foldright:cffu:1.0.2")
613+
implementation("io.foldright:cffu:1.0.3")
614614
```
615615
Gradle Groovy DSL
616616
```groovy
617-
implementation 'io.foldright:cffu:1.0.2'
617+
implementation 'io.foldright:cffu:1.0.3'
618618
```
619619
- [📌 `TransmittableThreadLocal(TTL)`](https://github.com/alibaba/transmittable-thread-local)的[`cffu executor wrapper SPI`实现](cffu-ttl-executor-wrapper):
620620
- For `Maven` projects:
@@ -623,19 +623,19 @@ public class MultipleActionsDemo {
623623
<dependency>
624624
<groupId>io.foldright</groupId>
625625
<artifactId>cffu-ttl-executor-wrapper</artifactId>
626-
<version>1.0.2</version>
626+
<version>1.0.3</version>
627627
<scope>runtime</scope>
628628
</dependency>
629629
```
630630
- For `Gradle` projects:
631631

632632
Gradle Kotlin DSL
633633
```groovy
634-
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.2")
634+
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.3")
635635
```
636636
Gradle Groovy DSL
637637
```groovy
638-
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.2'
638+
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.3'
639639
```
640640
- `cffu bom`:
641641
- For `Maven` projects:
@@ -644,7 +644,7 @@ public class MultipleActionsDemo {
644644
<dependency>
645645
<groupId>io.foldright</groupId>
646646
<artifactId>cffu-bom</artifactId>
647-
<version>1.0.2</version>
647+
<version>1.0.3</version>
648648
<type>pom</type>
649649
<scope>import</scope>
650650
</dependency>
@@ -653,11 +653,11 @@ public class MultipleActionsDemo {
653653

654654
Gradle Kotlin DSL
655655
```groovy
656-
implementation(platform("io.foldright:cffu-bom:1.0.2"))
656+
implementation(platform("io.foldright:cffu-bom:1.0.3"))
657657
```
658658
Gradle Groovy DSL
659659
```groovy
660-
implementation platform('io.foldright:cffu-bom:1.0.2')
660+
implementation platform('io.foldright:cffu-bom:1.0.3')
661661
```
662662

663663
# 📚 更多资料

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.2</version>
608+
<version>1.0.3</version>
609609
</dependency>
610610
```
611611
- For `Gradle` projects:
612612

613613
Gradle Kotlin DSL
614614
```groovy
615-
implementation("io.foldright:cffu:1.0.2")
615+
implementation("io.foldright:cffu:1.0.3")
616616
```
617617
Gradle Groovy DSL
618618
```groovy
619-
implementation 'io.foldright:cffu:1.0.2'
619+
implementation 'io.foldright:cffu:1.0.3'
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.2</version>
628+
<version>1.0.3</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.2")
636+
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.3")
637637
```
638638
Gradle Groovy DSL
639639
```groovy
640-
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.2'
640+
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.3'
641641
```
642642

643643
# 📚 See also

cffu-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
-->
1111
<groupId>io.foldright</groupId>
1212
<artifactId>cffu-bom</artifactId>
13-
<version>1.x-SNAPSHOT</version>
13+
<version>1.0.3</version>
1414
<packaging>pom</packaging>
1515
<name>${project.artifactId}</name>
1616
<description>cffu bom</description>

cffu-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.foldright</groupId>
66
<artifactId>cffu-parent</artifactId>
7-
<version>1.x-SNAPSHOT</version>
7+
<version>1.0.3</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

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.2-Alpha</version>
25+
<version>1.0.3-Alpha</version>
2626
</dependency>
2727
```
2828
- For `Gradle` projects:
2929

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

cffu-kotlin/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<parent>
55
<groupId>io.foldright</groupId>
66
<artifactId>cffu-parent</artifactId>
7-
<version>1.x-SNAPSHOT</version>
7+
<version>1.0.3</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

1111
<artifactId>cffu-kotlin</artifactId>
12-
<!-- UPDATE to Alpha version WHEN RELEASE, e.g. <version>1.x.y-Alpha</version> -->
12+
<version>1.0.3-Alpha</version>
1313
<name>${project.artifactId}</name>
1414
<description>Cffu Kotlin Support</description>
1515
<url>https://github.com/foldright/cffu</url>

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.2-Alpha</version>
22+
<version>1.0.3-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.2-Alpha")
29+
implementation("io.foldright:cffu-listenable-future:1.0.3-Alpha")
3030
```
3131
Gradle Groovy DSL
3232
```groovy
33-
implementation 'io.foldright:cffu-listenable-future:1.0.2-Alpha'
33+
implementation 'io.foldright:cffu-listenable-future:1.0.3-Alpha'
3434
```

cffu-listenable-future/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<parent>
55
<groupId>io.foldright</groupId>
66
<artifactId>cffu-parent</artifactId>
7-
<version>1.x-SNAPSHOT</version>
7+
<version>1.0.3</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

1111
<artifactId>cffu-listenable-future</artifactId>
12-
<!-- UPDATE to Alpha version WHEN RELEASE, e.g. <version>1.x.y-Alpha</version> -->
12+
<version>1.0.3-Alpha</version>
1313
<name>Guava ListenableFuture Integration with CF</name>
1414
<description>${project.name}</description>
1515
<url>https://github.com/foldright/cffu</url>

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.2</version>
27+
<version>1.0.3</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.2")
34+
runtimeOnly("io.foldright:cffu-ttl-executor-wrapper:1.0.3")
3535
```
3636
Gradle Groovy DSL
3737
```groovy
38-
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.2'
38+
runtimeOnly 'io.foldright:cffu-ttl-executor-wrapper:1.0.3'
3939
```
4040

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

cffu-ttl-executor-wrapper/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.foldright</groupId>
66
<artifactId>cffu-parent</artifactId>
7-
<version>1.x-SNAPSHOT</version>
7+
<version>1.0.3</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

demos/cffu-demo/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.foldright.cffu-demos</groupId>
66
<artifactId>demos-parent</artifactId>
7-
<version>1.x-SNAPSHOT</version>
7+
<version>1.0.3</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

demos/cffu-kotlin-demo/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>io.foldright.cffu-demos</groupId>
66
<artifactId>demos-parent</artifactId>
7-
<version>1.x-SNAPSHOT</version>
7+
<version>1.0.3</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

@@ -19,7 +19,7 @@
1919
<dependency>
2020
<groupId>io.foldright</groupId>
2121
<artifactId>cffu-kotlin</artifactId>
22-
<!-- UPDATE to Alpha version WHEN RELEASE, e.g. <version>1.x.y-Alpha</version> -->
22+
<version>1.0.3-Alpha</version>
2323
</dependency>
2424
<dependency>
2525
<groupId>org.jetbrains.kotlin</groupId>

demos/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>io.foldright.cffu-demos</groupId>
55
<artifactId>demos-parent</artifactId>
6-
<version>1.x-SNAPSHOT</version>
6+
<version>1.0.3</version>
77
<packaging>pom</packaging>
88

99
<properties>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>io.foldright</groupId>
66
<artifactId>cffu-parent</artifactId>
7-
<version>1.x-SNAPSHOT</version>
7+
<version>1.0.3</version>
88
<packaging>pom</packaging>
99
<name>${project.artifactId}</name>
1010
<description>cffu parent</description>

0 commit comments

Comments
 (0)