T
- the value type pushedpublic interface SingleOnSubscribe<T>
subscribe()
method that receives
an instance of a SingleEmitter
instance that allows pushing
an event in a cancellation-safe manner.Modifier and Type | Method and Description |
---|---|
void |
subscribe(SingleEmitter<T> emitter)
Called for each SingleObserver that subscribes.
|
void subscribe(@NonNull SingleEmitter<T> emitter) throws Throwable
emitter
- the safe emitter instance, never nullThrowable
- on error