Thread
#multiplatform
    spierce7

    spierce7

    2 years ago
    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
    .
    spierce7

    spierce7

    2 years ago
    Interesting! I don’t love it, but it seems reasonable. Thanks!
    Kurt Renzo Acosta

    Kurt Renzo Acosta

    2 years ago
    Yeah. Suspend functions don't have interop so this would do for now.
    s

    Sean Keane

    2 years ago
    Can confirm. I made a working version of a VM using this FlowUtil. It seems to work ok for this use case