I need to convert a generic Flux (from reactor.core) to kotlinx.coroutines.flow.Flow
I'm trying this code
import kotlinx.coroutines.reactive.asFlow
fun <T> genericFlux2FLow (flux: Flux<T>) {
flux.asFlow()
}
and the compiler says "Unresolved reference" for asFlow.
This code works though
fun flux2Flow(flux: Flux<Int>) {
flux.asFlow()
}