T - the type of the stream of items.S - the type of the single item.public interface PublisherWithSingle<T,S> extends Publisher<T>
Publisher| Modifier and Type | Method and Description |
|---|---|
void |
subscribeBoth(@NotNull WithSingleSubscriber<? super T,? super S> subscriber)
Subscribes to this PublisherWithSingle. |
void subscribeBoth(@NotNull
@NotNull WithSingleSubscriber<? super T,? super S> subscriber)
Subscribes to this PublisherWithSingle.
In addition to signalling the stream of items via onNext, the single
item is signalled via onSingle.
subscriber - the WithSingleSubscriber that will consume signals from this PublisherWithSingle.Publisher.subscribe(Subscriber)