Interface PublisherToSingleOperator<T,R>

Type Parameters:
T - Type of items emitted by the Publisher this operator is applied.
R - Type of items emitted by this operator.
All Superinterfaces:
Function<SingleSource.Subscriber<? super R>,PublisherSource.Subscriber<? super T>>

public interface PublisherToSingleOperator<T,R> extends Function<SingleSource.Subscriber<? super R>,PublisherSource.Subscriber<? super T>>
An operator contract for a Publisher to Single conversion. Logically an operator sits between a Publisher and a PublisherSource.Subscriber and hence it has two responsibilities: So, an operator can be defined as a Function that takes a SingleSource.Subscriber and returns a PublisherSource.Subscriber. The SingleSource.Subscriber that is passed to this Function is the one that has subscribed to the Single operator. The PublisherSource.Subscriber that is returned by this Function is the one that should be used to subscribe to the Publisher on which this operator is applied.