public final class NoopSubscriber<T> extends Object implements org.reactivestreams.Subscriber<T>
Subscriber that discards all elements silently.| Constructor and Description |
|---|
NoopSubscriber() |
| Modifier and Type | Method and Description |
|---|---|
static <T> NoopSubscriber<T> |
get()
Returns a singleton
NoopSubscriber. |
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
public static <T> NoopSubscriber<T> get()
NoopSubscriber.public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<T>public void onError(Throwable t)
onError in interface org.reactivestreams.Subscriber<T>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<T>Copyright © 2020 LeanCloud. All rights reserved.