T - public class SafeSubscriber<T> extends Subscriber<T>
The following is taken from the Rx Design Guidelines document: http://go.microsoft.com/fwlink/?LinkID=205219
Messages sent to instances of the IObserver interface follow the following grammar: OnNext* (OnCompleted | OnError)? This grammar allows observable sequences to send any amount (0 or more) of OnNext messages to the subscribed observer instance, optionally followed by a single success (OnCompleted) or failure (OnError) message. The single message indicating that an observable sequence has finished ensures that consumers of the observable sequence can deterministically establish that it is safe to perform cleanup operations. A single failure further ensures that abort semantics can be maintained for operators that work on multiple observable sequences (see paragraph 6.6).
This wrapper will do the following:
 It will not synchronize onNext execution. Use the SerializedSubscriber to do that.
| Constructor and Description | 
|---|
| SafeSubscriber(Subscriber<? super T> actual) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | _onError(java.lang.Throwable e) | 
| Subscriber<? super T> | getActual() | 
| void | onCompleted()Notifies the Observer that the  Observablehas finished sending push-based notifications. | 
| void | onError(java.lang.Throwable e)Notifies the Observer that the  Observablehas experienced an error condition. | 
| void | onNext(T args)Provides the Observer with new data. | 
add, isUnsubscribed, unsubscribepublic SafeSubscriber(Subscriber<? super T> actual)
public void onCompleted()
ObserverObservable has finished sending push-based notifications.
 
 The Observable will not call this closure if it calls onError.
public void onError(java.lang.Throwable e)
ObserverObservable has experienced an error condition.
 
 If the Observable calls this closure, it will not thereafter call onNext or
 onCompleted.
public void onNext(T args)
Observer
 The Observable calls this closure 1 or more times, unless it calls onError in which
 case this closure may never be called.
 
 The Observable will not call this closure again after it calls either onCompleted or
 onError.
protected void _onError(java.lang.Throwable e)
public Subscriber<? super T> getActual()