Interface FlowableOperator<Downstream, Upstream>
- Type Parameters:
Downstream- the value type of the downstreamUpstream- the value type of the upstream
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface to map/wrap a downstream
Flow.Subscriber to an upstream Subscriber.-
Method Summary
Modifier and TypeMethodDescription@NonNull Flow.Subscriber<? super Upstream> apply(@NonNull Flow.Subscriber<? super @NonNull Downstream> subscriber) Applies a function to the childFlow.Subscriberand returns a new parentSubscriber.
-
Method Details
-
apply
@NonNull @NonNull Flow.Subscriber<? super Upstream> apply(@NonNull @NonNull Flow.Subscriber<? super @NonNull Downstream> subscriber) throws Throwable Applies a function to the childFlow.Subscriberand returns a new parentSubscriber.- Parameters:
subscriber- the childSubscriberinstance- Returns:
- the parent
Subscriberinstance - Throws:
Throwable- on failure
-