Register a callback to be run when Subscriber is unsubscribed
Register a callback to be run when Subscriber is unsubscribed
callback to run when unsubscribed
Used to register an unsubscribe callback.
Checks if the subscription is unsubscribed.
Checks if the subscription is unsubscribed.
Notifies the Observer that the rx.lang.scala.Observable has finished sending push-based notifications.
Notifies the Observer that the rx.lang.scala.Observable has finished sending push-based notifications.
The rx.lang.scala.Observable will not call this method if it calls onError
.
Notifies the Observer that the rx.lang.scala.Observable has experienced an error condition.
Notifies the Observer that the rx.lang.scala.Observable has experienced an error condition.
If the rx.lang.scala.Observable calls this method, it will not thereafter call onNext
or onCompleted
.
Provides the Observer with new data.
Provides the Observer with new data.
The rx.lang.scala.Observable calls this closure 0 or more times.
The rx.lang.scala.Observable will not call this method again after it calls either onCompleted
or onError
.
Call this method to stop receiving notifications on the Observer that was registered when this Subscription was received.
Call this method to stop receiving notifications on the Observer that was registered when this Subscription was received.
An extension of the
Observer
trait which adds subscription handling (unsubscribe
,isUnsubscribed
, andadd
methods) and backpressure handling (onStart
andrequest
methods).Similarly to the RxJava Subscriber, this class has two constructors:
The first constructor takes as argument the child Subscriber from further down the pipeline and is usually only needed together with
lift
:The second constructor takes no arguments and is typically used with the subscribe method:
Notice that these two constructors are not (as usually in Scala) in the companion object, because if they were, we couldn't create anonymous classes implementing
onStart
/onNext
/onError
/onCompleted
as in the examples above. However, there are more constructors in the companion object, which allow you to construct Subscribers from givenonNext
/onError
/onCompleted
lambdas.