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

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -