Subscriber
Implements the Observer interface and extends the
Subscription class. While the Observer is the public API for
consuming the values of an Observable, all Observers get converted to
a Subscriber, in order to provide Subscription-like capabilities such as
unsubscribe
. Subscriber is a common type in RxJS, and crucial for
implementing operators, but it is rarely used as a public API.
§Constructors
Internal implementation detail, do not use directly. Will be made internal in v8. There is no reason to directly create an instance of Subscriber. This type is exported for typings reasons.
§Properties
§Methods
§Static Methods
A static factory for a Subscriber, given a (potentially partial) definition of an Observer.
The next
callback of an Observer.
The error
callback of an
Observer.
The complete
callback of an
Observer.
A Subscriber wrapping the (partially defined) Observer represented by the given arguments.
Do not use. Will be removed in v8. There is no replacement for this
method, and there is no reason to be creating instances of Subscriber
directly.
If you have a specific use case, please file an issue.