micronaut-projects / micronaut-rxjava3

Integration between Micronaut and RxJava 3
Apache License 2.0
5 stars 3 forks source link

Considering changing responses in RxHttpClient from Flowable to Single #273

Closed sdelamo closed 1 year ago

sdelamo commented 1 year ago

see: https://github.com/micronaut-projects/micronaut-reactor/pull/249

wetted commented 1 year ago

We cannot change the responses to io.reactivex.Single.

Rx3HttpClient (and BridgedRx3HttpClient, etc) extend the HttpClient interface in core, which exposes org.reactivestreams.Publisher as response types. Flowable, Flux and Mono all implement org.reactivestreams.Publisher so they can be used but io.reactivex.Single does not.