public interface CompletableEmitter
CompletableObserver
that allows associating
a resource with it.
All methods are safe to call from multiple threads.
Calling onComplete or onError multiple times has no effect.
Modifier and Type | Method and Description |
---|---|
boolean |
isDisposed()
Returns true if the downstream disposed the sequence.
|
void |
onComplete()
Signal the completion.
|
void |
onError(java.lang.Throwable t)
Signal an exception.
|
void |
setCancellable(Cancellable c)
Sets a Cancellable on this emitter; any previous Disposable
or Cancellation will be disposed/cancelled.
|
void |
setDisposable(Disposable d)
Sets a Disposable on this emitter; any previous Disposable
or Cancellation will be disposed/cancelled.
|
void onComplete()
void onError(@NonNull java.lang.Throwable t)
t
- the exception, not nullvoid setDisposable(@Nullable Disposable d)
d
- the disposable, null is allowedvoid setCancellable(@Nullable Cancellable c)
c
- the cancellable resource, null is allowedboolean isDisposed()