rx java - Use Reactive-Streams Processor with RxJava 2.0 -
i have org.reactivestreams.processor use rxjava 2.0. however, while there conversions integrate anorg.reactivestreams.publisher rxjava, io.reactivex.flowable#frompublisher, not clear me how best integrate org.reactivestreams.processor (or org.reactivestreams.subscriber). can shine light on this?
you wrap publisher side , keep subscriber side is:
processor proc = ... subscriber sub = proc; flowable flow = flowable.frompublisher(proc); flow.map(v -> v.tostring()).subscribe(system.out::println); sub.onnext(1);
Comments
Post a Comment