#BehaviorSubject

RxJava的四种Subjects:PublishSubject、ReplaySubject、BehaviorSubject、AsyncSubject的理解

Subject:它既是Observable,又是observer。也就是既可以发送事件,也可以接收事件。下面是四个子类PublishSubject、ReplaySubject、BehaviorSubject、AsyncSubject的区别:PublishSubject<Integer>source=Publ...