public interface WithSingleSubscriber<T,S> extends Subscriber<T>
Subscriber which consumes also a single item of type S by onSingle(Object) besides items
of type T by Subscriber.onNext(Object).Subscriber| Modifier and Type | Method and Description |
|---|---|
void |
onSingle(S s)
Single item sent by the
PublisherWithSingle. |
onComplete, onError, onNext, onSubscribevoid onSingle(@NotNull
S s)
PublisherWithSingle.s - the single item.