Open mrdulin opened 7 years ago
dispose
is the correct function for anything < 5.0.0.
= 5.0.0 should use
unsubscribe
.
The naming was changed between versions because Disposable
which came from the .NET family of Rx was renamed as a Subscription
.
You can find v5 source at https://github.com/ReactiveX/rxjs
@paulpdaniels Thanks very much! http://reactivex.io/rxjs/ This site is rxjs version >= 5.0.0? Where can I find the v4 doc? https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/ Is it?
@mrdulin sorry for the delay, yes that is correct
For example, I want to
unsubscribe
asubscription
:https://github.com/Reactive-Extensions/RxJS/blob/master/doc/gettingstarted/creating.md
From this doc: I must do
subscription.dispose()
;http://reactivex.io/rxjs/manual/overview.html
But, from this doc, I must do
subscription.unsubscribe()
;I am confused which is the "correct" doc?
My
rxjs
version: