Package io.reactivex.rxjava3.core
Interface ObservableOnSubscribe<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.
@FunctionalInterface public interface ObservableOnSubscribe<@NonNull T>A functional interface that has asubscribe()method that receives anObservableEmitterinstance that allows pushing events in a cancellation-safe manner.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsubscribe(@NonNull ObservableEmitter<@NonNull T> emitter)Called for eachObserverthat subscribes.
-