T
- the value type pushed@FunctionalInterface public interface FlowableOnSubscribe<T>
subscribe()
method that receives
a FlowableEmitter
instance that allows pushing
events in a backpressure-safe and cancellation-safe manner.Modifier and Type | Method and Description |
---|---|
void |
subscribe(@NonNull FlowableEmitter<T> emitter)
Called for each
Subscriber that subscribes. |
void subscribe(@NonNull @NonNull FlowableEmitter<T> emitter) throws Throwable
Subscriber
that subscribes.emitter
- the safe emitter instance, never null
Throwable
- on error