Hi all,
I wonder if anyone has hands-on experience with
Flow
in MPP/KN modules? Got any tips & tricks?
I'm trying to expose shared repository layer for iOS/Android, and considering which
Observable
implementation to expose. Would really like to avoid
Reaktive
, having already coroutines and RxJava in the project...
Thanks in advance!
a
Arkadii Ivanov
01/02/2020, 7:57 PM
Flow can not be directly exposed to Swift as suspend functions are not available from there. You will need to wrap Flow into something based on regular callbacks with cancellation. Reaktive can be exposed. Also both Flow and Reaktive are based on extension functions. They are a bit hard to call from Swift. We are considering Swift extensions for Reaktive.