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> e)
Called for each MaybeObserver that subscribes.
|
void subscribe(@NonNull MaybeEmitter<T> e) throws java.lang.Exception
e
- the safe emitter instance, never nulljava.lang.Exception
- on error