T - the output value typepublic interface SynchronousSink<T>
Subscriber.
At most one next(T) call and/or one complete() or error(Throwable) should be called per invocation of the generator function
| Modifier and Type | Method and Description |
|---|---|
void |
complete() |
void |
error(java.lang.Throwable e) |
void |
next(T t)
Try emitting, might throw an unchecked exception.
|
void complete()
Subscriber.onComplete()void error(java.lang.Throwable e)
e - the exception to signal, not nullSubscriber.onError(Throwable)void next(T t)
t - the value to emit, not nulljava.lang.RuntimeException - in case of unchecked error during the emissionSubscriber.onNext(Object)