Package rx

Interface Completable.CompletableSubscriber

All Known Implementing Classes:
AsyncCompletableSubscriber, CompletableOnSubscribeConcat.CompletableConcatSubscriber.ConcatInnerSubscriber, CompletableOnSubscribeConcatArray.ConcatInnerSubscriber, CompletableOnSubscribeConcatIterable.ConcatInnerSubscriber, OnSubscribeOnAssemblyCompletable.OnAssemblyCompletableSubscriber, SafeCompletableSubscriber
Enclosing class:
Completable

public static interface Completable.CompletableSubscriber
Represents the subscription API callbacks when subscribing to a Completable instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called once the deferred computation completes normally.
    void
    Called once if the deferred computation 'throws' an exception.
    void
    Called once by the Completable to set a Subscription on this instance which then can be used to cancel the subscription at any time.
  • Method Details

    • onCompleted

      void onCompleted()
      Called once the deferred computation completes normally.
    • onError

      void onError(Throwable e)
      Called once if the deferred computation 'throws' an exception.
      Parameters:
      e - the exception, not null.
    • onSubscribe

      void onSubscribe(Subscription d)
      Called once by the Completable to set a Subscription on this instance which then can be used to cancel the subscription at any time.
      Parameters:
      d - the Subscription instance to call dispose on for cancellation, not null