File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1371,7 +1371,10 @@ other than `Future`, such as [`Flow.Publisher`](
1371
1371
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/Flow.Publisher.html
1372
1372
), [ ` org.reactivestreams.Publisher ` ] (
1373
1373
https://www.reactive-streams.org/reactive-streams-1.0.3-javadoc/org/reactivestreams/Publisher.html ),
1374
- or RxJava's [ ` Observable ` ] ( http://reactivex.io/RxJava/javadoc/io/reactivex/Observable.html ) .
1374
+ RxJava's [ ` Observable ` ] ( http://reactivex.io/RxJava/javadoc/io/reactivex/Observable.html ) , or
1375
+ Kotlin's [ ` Deferred ` ] (
1376
+ https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-deferred/index.html
1377
+ ).
1375
1378
1376
1379
<a name =" future-method-failure-paths " ></a >
1377
1380
[ #] ( #future-method-failure-paths ) Ft.3. If a method returns a ` Future ` and some logic in the
@@ -1407,8 +1410,8 @@ The point of this refactoring is unification of failure paths, so that the users
1407
1410
have to deal with multiple different ways of handling errors from the method.
1408
1411
1409
1412
Similarly to [ the previous item] ( #future-method-no-blocking ) , this consideration also applies when
1410
- a method returns any object representing an asynchronous execution other than ` Future ` , such as a
1411
- ` Publisher ` .
1413
+ a method returns any object representing an asynchronous execution other than ` Future ` , such as
1414
+ ` Publisher ` or Kotlin's ` Deferred ` .
1412
1415
1413
1416
### Thread interruption and ` Future ` cancellation
1414
1417
You can’t perform that action at this time.
0 commit comments