https://kotlinlang.org logo
Title
n

nicholasnet

06/14/2020, 5:15 AM
Is there a way to covert Flux to Flow and Mono to coroutine equivalents without blocking.?
n

nicholasnet

06/14/2020, 2:44 PM
In that documentation I only see conversion from Flow to Flux not the other way around. Same goes for Mono.
m

Marcelo Hernandez

06/15/2020, 7:44 AM
I'm not familiar with Flux but the library above includes https://github.com/Kotlin/kotlinx.coroutines/tree/master/reactive/kotlinx-coroutines-reactive. And this library provides extensions for any implementation of
Publisher
. It looks like
Flux
implements
Publisher
so you should be able to use
flux.asFlow()
.