Is there an empty Subscription in RxJs? In RxJava, there is Subscriptions.empty().
An empty Subscription is a Subscription to which unsubscribe does nothing except to change isUnsubscribed to true.
I am looking for it, but I can't find.
Is there an empty Subscription in RxJs? In RxJava, there is Subscriptions.empty().
An empty Subscription is a Subscription to which unsubscribe does nothing except to change isUnsubscribed to true.
I am looking for it, but I can't find.
Not sure what you want, but I can think about two things :
Rx.Observable.empty(). That returns an observable which immediately emits an onCompleted message.Rx.Observable.never(). That returns an observable which never emits anything.So both are empty in the sense that they do not emit any onNext message. However their completion semantics differ. Does that cover your use case?