Package io.reactivex.rxjava3.core
Interface FlowableOnSubscribe<T>
- Type Parameters:
T
- the value type pushed
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface that has a
subscribe()
method that receives
a FlowableEmitter
instance that allows pushing
events in a backpressure-safe and cancellation-safe manner.-
Method Summary
Modifier and TypeMethodDescriptionvoid
subscribe
(@NonNull FlowableEmitter<@NonNull T> emitter) Called for eachSubscriber
that subscribes.
-
Method Details
-
subscribe
Called for eachSubscriber
that subscribes.- Parameters:
emitter
- the safe emitter instance, nevernull
- Throws:
Throwable
- on error
-