Skip to content

Commit 923df24

Browse files
committed
Don't call Deferred "Kotlin's" because there is also Deferred in Scala in Cats Effect
1 parent 9a250c3 commit 923df24

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,14 +1370,11 @@ exceptionally, or the method itself may throw an exception (typically from the b
13701370
which is illustrated by `getSalary() throws ConnectionException` in the above examples.
13711371

13721372
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`](
13741374
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/Flow.Publisher.html
13751375
), [`org.reactivestreams.Publisher`](
13761376
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).
13811378

13821379
<a name="future-method-failure-paths"></a>
13831380
[#](#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.
14161413

14171414
Similarly to [the previous item](#future-method-no-blocking), this consideration also applies when
14181415
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`.
14201417

14211418
### Thread interruption and `Future` cancellation
14221419

0 commit comments

Comments
 (0)