public static interface CompletableSource.Subscriber
Cancellable.
The semantics and threading model of this interface is meant to be the same as
PublisherSource.Subscriber, but simplified for the use case where the operations completes or fails with
no data.
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete()
Success terminal state.
|
void |
onError(java.lang.Throwable t)
Failed terminal state.
|
void |
onSubscribe(Cancellable cancellable)
Called when the associated
CompletableSource is subscribed via
CompletableSource.subscribe(Subscriber). |
void onSubscribe(Cancellable cancellable)
CompletableSource is subscribed via
CompletableSource.subscribe(Subscriber).cancellable - A Cancellable that can be used to cancel the asynchronous computation for
this subscriber.void onComplete()
No further events will be sent.
void onError(java.lang.Throwable t)
No further events will be sent.
t - the throwable signaled