RxJava主题与处理器

sey*_*ari 3 reactive-programming rx-java2

我在Rxjava中使用Subjects已经有一段时间了,但是今天出现了一个新术语:

PublishProccessor您能否解释处理器和主题的区别?

我已经阅读了文档,但它们基本上是相同的。

先感谢您

sey*_*ari 7

For the Future readers:

The main difference is their base class, therefore the way that these two react to onNext event is different.

PublishProcessor是Flowable的子类,因此您可以在使用它们时使用BackPressure策略。PublishSubject的超类是可观察的,因此至少没有BackPressure策略。