Interface CompletableOnSubscribe
- 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 CompletableEmitter instance that allows pushing
an event in a cancellation-safe manner.-
Method Summary
Modifier and TypeMethodDescriptionvoidsubscribe(@NonNull CompletableEmitter emitter) Called for eachCompletableObserverthat subscribes.
-
Method Details
-
subscribe
Called for eachCompletableObserverthat subscribes.- Parameters:
emitter- the safe emitter instance, nevernull- Throws:
Throwable- on error
-