smallrye-mutiny
smallrye-mutiny copied to clipboard
Contribute a Mutiny module to kotlinx.coroutines/reactive
There's a collection of Kotlin coroutine support modules for different reactive libraries.
Moving the coroutines integrations from mutiny-kotlin to https://github.com/Kotlin/kotlinx.coroutines/tree/master/reactive would make reuse of some exising Publisher/Coroutine implementions over there possible.
On the other side, it would raise awareness for Mutiny in the Kotlin community.
Phases:
- contribute kotlinx-coroutines-reactive-mutiny
- refactor mutiny-kotlin to use kotlinx-coroutines-reactive-mutiny
Considerations:
- additional dependencies for mutiny-kotlin and all downstream projects
- one of the downstream projects is Quarkus, which means that native image builds needs to be possible with kotlinx-coroutines-reactive
- changes would have longer lead time, due to upstream contribution to kotlinx-coroutines-reactive - could be mitigated by a multi-phase fix in mutiny-kotlin first, contribution to coroutines-reactive, adoption of that fix in mutiny-kotlin.
/cc @hantsy @Sanne @MartinX3 @rgmz @FWest98 @jponge
Is this project using Java Flow or still the legacy reactive stream API?
Is this project using Java Flow or still the legacy reactive stream API?
Flow: https://github.com/Kotlin/kotlinx.coroutines/tree/master/reactive/kotlinx-coroutines-jdk9
Under this project, it includes several modules.
-
kotlinx-coroutines-jdk9
for JDK 9 Flow -
kotlinx-coroutines-reactive
for Reactive Streams APIs -
kotlinx-coroutines-reactor
for Reactor, depends onkotlinx-coroutines-reactive
-
kotlinx-coroutines-rx2
for RxJava 2, depends onkotlinx-coroutines-reactive
-
kotlinx-coroutines-rx3
for RxJava 3, depends onkotlinx-coroutines-reactive
The new kotlinx-coroutines-mutiny
can reuse kotlinx-coroutines-jdk9
.
Sounds good
Any update for this?
Not yet, pardon me. Lack of time atm, but honestly planning to proceed asap.
Don't worry @heubeck 👍