public interface CompletableObserver
Modifier and Type | Method and Description |
---|---|
void |
onComplete()
Called once the deferred computation completes normally.
|
void |
onError(java.lang.Throwable e)
Called once if the deferred computation 'throws' an exception.
|
void |
onSubscribe(Disposable d)
Called once by the Completable to set a Disposable on this instance which
then can be used to cancel the subscription at any time.
|
void onSubscribe(@NonNull Disposable d)
d
- the Disposable instance to call dispose on for cancellation, not nullvoid onComplete()
void onError(@NonNull java.lang.Throwable e)
e
- the exception, not null.