Why not always use Flowable in rxjava2

In rxJava2, there is a difference between Observables (no backpressure) and Flowables (reverse). https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#when-to-use-observable gives some reasons for using observable data, but, as far as I can see, the functionality of observables is a subset of the flow indicators.

Is there a reason not to always use threads? Perhaps observed faster? Or can you do things with observables that you cannot do with current ones?

+4
source share
1 answer
  • Observed faster:

Using Observable has lower overhead than Flowable

  1. :

, , , .

  1. , RxJava .

, . Project Reactor, .

+4

Source: https://habr.com/ru/post/1666588/


All Articles