public final class Subscribers
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Subscriber<T> |
create(Action1<? super T> onNext)
Create an Subscriber that receives `onNext` and ignores `onError` and `onCompleted`.
|
static <T> Subscriber<T> |
create(Action1<? super T> onNext,
Action1<java.lang.Throwable> onError)
Create an Subscriber that receives `onNext` and `onError` and ignores `onCompleted`.
|
static <T> Subscriber<T> |
create(Action1<? super T> onNext,
Action1<java.lang.Throwable> onError,
Action0 onComplete)
Create an Subscriber that receives `onNext`, `onError` and `onCompleted`.
|
static <T> Subscriber<T> |
empty() |
static <T> Subscriber<T> |
from(Observer<? super T> o) |
public static <T> Subscriber<T> empty()
public static <T> Subscriber<T> from(Observer<? super T> o)
public static final <T> Subscriber<T> create(Action1<? super T> onNext)
public static final <T> Subscriber<T> create(Action1<? super T> onNext, Action1<java.lang.Throwable> onError)
public static final <T> Subscriber<T> create(Action1<? super T> onNext, Action1<java.lang.Throwable> onError, Action0 onComplete)