Hi Everyone ! We have a legacy Android app in Java...
# flow
k
Hi Everyone ! We have a legacy Android app in Java. Planning to rewrite some parts (DB and repository layer) in Kotlin. At one place , we have to access Kotlin Flow from java code. can you guys please direct me to any resource/link which talks about accessing Kotlin Flow from Java code ?
a
I’d say accessing coroutine-related code from Java is hardly possible or at least it will be very ugly. If you need to expose reactive streams from Kotlin to Java then you’d better use RxJava adapters: https://github.com/Kotlin/kotlinx.coroutines/tree/master/reactive