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 Exception
emitter - the safe emitter instance, never nullException - on error