https://kotlinlang.org logo
#flow
Title
# flow
k

Koya Sivaji

04/30/2021, 8:04 PM
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

Alex Vasilkov

05/02/2021, 7:15 PM
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
2 Views