Skip to content

Commit b3ddc86

Browse files
More clarification on behavior subject
1 parent f2a8048 commit b3ddc86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/com/rxjava2/android/samples/ui/operators/BehaviorSubjectExampleActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public void onClick(View view) {
4242
/* When an observer subscribes to a BehaviorSubject, it begins by emitting the item most
4343
* recently emitted by the source Observable (or a seed/default value if none has yet been
4444
* emitted) and then continues to emit any other items emitted later by the source Observable(s).
45+
* It is different from Async Subject as async emits the last value (and only the last value)
46+
* but the Behavior Subject emits the last and the subsequent values also.
4547
*/
4648
private void doSomeWork() {
4749

0 commit comments

Comments
 (0)