From the API docs of Rx Observable in scala:
http://reactivex.io/rxscala/scaladoc/#rx.lang.scala.Observable
There are two apply methods, one that takes a Subscriber and the other that takes an Observer. What is the difference between these two apply methods other than the fact that they take in different types to subscribe to an Observable?
From Subscriber's documentation:
So we can assume that
Observer
'sapply
is more general binding which could take some proxied or self-defined observers and implements the observer pattern, whileSubscriber
'sapply
is more efficient internal binding.See this question for the details.