Hides the identity of an observer.
Hides the identity of an observer.
(Observer): An observer that hides the identity of the specified observer.
Rx.Observer.prototype.asObserver()
Checks access to the observer for grammar violations.
Checks access to the observer for grammar violations. This includes checking for multiple onError or onCompleted calls, as well as re-entrancy in any of the observer methods.
If a violation is detected, an Error is thrown from the offending observer method call.
(Observer): An observer that checks callbacks invocations against the observer grammar and, if the checks pass, forwards those to the specified observer.
Rx.Observer.prototype.checked()
Schedules the invocation of observer methods on the given scheduler.
Schedules the invocation of observer methods on the given scheduler.
(Scheduler): Scheduler to schedule observer messages on.
(Observer): Observer whose messages are scheduled on the given scheduler.
Rx.Observer.prototype.notifyOn(scheduler)
Notifies the observer of the end of the sequence.
Notifies the observer of the end of the sequence.
Rx.Observer.prototype.onCompleted()
Notifies the observer that an exception has occurred.
Notifies the observer that an exception has occurred.
(Any): The error that has occurred.
Rx.Observer.prototype.onError(error)
Notifies the observer of a new element in the sequence.
Notifies the observer of a new element in the sequence.
(Any): Next element in the sequence.
Rx.Observer.prototype.onNext(value)
Creates a notification callback from an observer.
Creates a notification callback from an observer.
(Function): The function that forwards its input notification to the underlying observer.
The Observer object provides support for push-style iteration over an observable sequence.
The Observer and Objects interfaces provide a generalized mechanism for push-based notification, also known as the observer design pattern. The Observable object represents the object that sends notifications (the provider); the Observer object represents the class that receives them (the observer).