If I have a Kotlin lib that does something asyncro...
# multiplatform
s
If I have a Kotlin lib that does something asyncronously in the background, and returns a stream of data, what’s the best way to expose that from Kotlin to be consumed from Swift? For Android I’m returning it as a
Flow
.
s
Interesting! I don’t love it, but it seems reasonable. Thanks!
k
Yeah. Suspend functions don't have interop so this would do for now.
s
Can confirm. I made a working version of a VM using this FlowUtil. It seems to work ok for this use case