micronaut-projects / micronaut-rxjava3

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

Propagate context when converting from Publisher to RxJava type #335

Closed jeremyg484 closed 7 months ago

jeremyg484 commented 7 months ago

RxJava3ConverterRegistrar is updated to wrap the source Publisher in a context-aware publisher that propagates any available context when converting to an RxJava type.

This solves the general case where the internal Micronaut implementation is using Reactor types and the Reactor context API, but then the type is converted to an RxJava type such as Flowable as required by the user's code. For example, this happens when applying the declarative HttpClient to a user's interface or abstract class that uses RxJava types.

This resolves #306.

sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
87.5% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

sdelamo commented 7 months ago

@dstepanov ping