Class SingleOnSubscribeUsing<T,​Resource>

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

    public final class SingleOnSubscribeUsing<T,​Resource>
    extends java.lang.Object
    implements Single.OnSubscribe<T>
    Generates a resource, derives a Single from it and disposes that resource once the Single terminates.