Class OnSubscribeSingle<T>

  • Type Parameters:
    T - the value type
    All Implemented Interfaces:
    Action, Action1<SingleSubscriber<? super T>>, Function, Single.OnSubscribe<T>

    public class OnSubscribeSingle<T>
    extends java.lang.Object
    implements Single.OnSubscribe<T>
    Allows conversion of an Observable to a Single ensuring that exactly one item is emitted - no more and no less. Also forwards errors as appropriate.