Downstream
- the value type of the downstreamUpstream
- the value type of the upstream@FunctionalInterface public interface SingleOperator<Downstream,Upstream>
SingleObserver
to an upstream SingleObserver
.Modifier and Type | Method and Description |
---|---|
@NonNull SingleObserver<? super Upstream> |
apply(@NonNull SingleObserver<? super Downstream> observer)
Applies a function to the child
SingleObserver and returns a new parent SingleObserver . |
@NonNull @NonNull SingleObserver<? super Upstream> apply(@NonNull @NonNull SingleObserver<? super Downstream> observer) throws Throwable
SingleObserver
and returns a new parent SingleObserver
.observer
- the child SingleObserver
instanceSingleObserver
instanceThrowable
- on failure