Interface PublisherWithSingle<T,S>
- Type Parameters:
T- the type of the stream of items.S- the type of the single item.
- All Superinterfaces:
Publisher<T>
- All Known Implementing Classes:
FlowableWithSingle
A
Publisher which emits a flow of items of type PublisherWithSingle and a single item of type PublisherWithSingle.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidsubscribeBoth(@NotNull WithSingleSubscriber<? super T, ? super S> subscriber) Subscribesto thisPublisherWithSingle.
-
Method Details
-
subscribeBoth
Subscribesto thisPublisherWithSingle.In addition to signalling the stream of items via
onNext, the single item is signalled viaonSingle.- Parameters:
subscriber- theWithSingleSubscriberthat will consume signals from thisPublisherWithSingle.- See Also:
-