Skip to content

Commit cc05088

Browse files
DavidDTAakarnokd
authored andcommitted
Add specificity to documentation for AsyncSubject (ReactiveX#4014)
* Update AsyncSubject.java * Minor change to wording * Update AsyncSubject.java
1 parent 607f68c commit cc05088

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/main/java/rx/subjects/AsyncSubject.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
import rx.subjects.SubjectSubscriptionManager.SubjectObserver;
2727

2828
/**
29-
* Subject that publishes only the last item observed to each {@link Observer} that has subscribed, when the
30-
* source {@code Observable} completes.
29+
* Subject that publishes only the last item observed to each {@link Observer} once the source {@code Observable}
30+
* has completed. The item is cached and published to any {@code Observer}s which subscribe after the source
31+
* has completed. If the source emitted no items, {@code AsyncSubject} completes without emitting anything.
32+
* If the source terminated in an error, current and future subscribers will receive only the error.
3133
* <p>
3234
* <img width="640" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/S.AsyncSubject.png" alt="">
3335
* <p>

0 commit comments

Comments
 (0)