Class Single<T>

  • Type Parameters:
    T - Type of the result of the single.
    Direct Known Subclasses:
    LegacyTestSingle, SubscribableSingle, TestSingle

    public abstract class Single<T>
    extends java.lang.Object
    An asynchronous computation that either completes with success giving the result or completes with an error.

    How to subscribe?

    This class does not provide a way to subscribe using a SingleSource.Subscriber as such calls are ambiguous about the intent whether the subscribe is part of the same source (a.k.a an operator) or it is a terminal subscribe. If it is required to subscribe to a source, then a source adapter can be used to convert to a SingleSource.