nshmura nshmura - 1 year ago 112
Javascript Question

Empty Subscription for RxJs

Is there an empty

in RxJs?
In RxJava, there is Subscriptions.empty().

An empty
is a
to which unsubscribe does nothing except to change isUnsubscribed to true.

I am looking for it, but I can't find.

Answer Source

Yes such a thing exists:

RxJS 5 has Subscription.EMPTY

RxJS 4 has Disposable.empty