public final class FlowableProcessors
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> io.reactivex.processors.FlowableProcessor<T> |
wrap(org.reactivestreams.Processor<T,T> processor)
Wraps an arbitrary Reactive-Streams
Processor into a FlowableProcessor, relaying
the onXXX and subscribe() calls to it and providing a rich fluent API on top. |
public static <T> io.reactivex.processors.FlowableProcessor<T> wrap(org.reactivestreams.Processor<T,T> processor)
Processor into a FlowableProcessor, relaying
the onXXX and subscribe() calls to it and providing a rich fluent API on top.
Note that RxJava 2 doesn't support a FlowableProcessor with different input and output types.
T - the input and output typeprocessor - the processor to wrap (or return if already a FlowableProcessor), not null