@@ -1370,14 +1370,11 @@ exceptionally, or the method itself may throw an exception (typically from the b
1370
1370
which is illustrated by ` getSalary() throws ConnectionException ` in the above examples.
1371
1371
1372
1372
This advice also applies when a method returns any object representing an asynchronous execution
1373
- other than ` Future ` , such as [ ` Flow.Publisher ` ] (
1373
+ other than ` Future ` , such as ` Deferred ` , [ ` Flow.Publisher ` ] (
1374
1374
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/Flow.Publisher.html
1375
1375
), [ ` org.reactivestreams.Publisher ` ] (
1376
1376
https://www.reactive-streams.org/reactive-streams-1.0.3-javadoc/org/reactivestreams/Publisher.html ),
1377
- RxJava's [ ` Observable ` ] ( http://reactivex.io/RxJava/javadoc/io/reactivex/Observable.html ) , or
1378
- Kotlin's [ ` Deferred ` ] (
1379
- https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-deferred/index.html
1380
- ).
1377
+ or RxJava's [ ` Observable ` ] ( http://reactivex.io/RxJava/javadoc/io/reactivex/Observable.html ) .
1381
1378
1382
1379
<a name =" future-method-failure-paths " ></a >
1383
1380
[ #] ( #future-method-failure-paths ) Ft.3. If a method returns a ` Future ` and some logic in the
@@ -1416,7 +1413,7 @@ have to deal with multiple different ways of handling errors from the method.
1416
1413
1417
1414
Similarly to [ the previous item] ( #future-method-no-blocking ) , this consideration also applies when
1418
1415
a method returns any object representing an asynchronous execution other than ` Future ` , such as
1419
- ` Publisher ` or Kotlin's ` Deferred ` .
1416
+ ` Deferred ` , ` Publisher ` , or ` Observable ` .
1420
1417
1421
1418
### Thread interruption and ` Future ` cancellation
1422
1419
0 commit comments