https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

Darshan Nair

11/18/2023, 7:30 PM
Hello, everybody! Has anyone incorporated Flow into their multiplatform library? I know how to consume in JVM/Android but I don’t know how to use it JS. I'm utilizing the generated JS as an NPM package in another web project. Could someone assist me with the syntax in JS? Is Flow supported in JS?
j

Joel Denke

11/19/2023, 5:41 PM
Havent tested yet, but from my understanding you convert kotlin coroutines to Promises. See https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/promise.html
2 Views