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