Interface Single.Subscriber<V>

  • Enclosing interface:
    Single<V>

    public static interface Single.Subscriber<V>
    Subscriber is notified when the operation has been completed, successfully or not.
    • Method Detail

      • onComplete

        void onComplete​(V value)
        Called once this Single is completed.
        Parameters:
        value - the value, not null
      • onError

        void onError​(Throwable error)
        Called when this Single cannot be completed because of an error.
        Parameters:
        error - The error preventing this Single to complete, not null