Ryan
06/15/2020, 12:40 PMmarstran
06/15/2020, 12:43 PMLoginUserV1
implement the User
interface?Ryan
06/15/2020, 12:44 PMRyan
06/15/2020, 12:44 PMmarstran
06/15/2020, 12:47 PMSingle<out User>
?Ryan
06/15/2020, 12:56 PMRyan
06/15/2020, 12:56 PMArkadii Ivanov
06/15/2020, 1:07 PMSingle<out X>
also has some limitations. E.g. you won't be able to use operators where X
is used as input, e.g. the following will not be possible:
fun foo(user: Single<out User>) {
user.concatWith(/*SingleSource<out Nothing> is expected*/)
}
I wrote an article about it a while ago: https://badootech.badoo.com/reaktive-a-multiplatform-library-for-reactive-kotlin-android-ios-77b6ff25adb1Ryan
06/15/2020, 1:09 PMArkadii Ivanov
06/15/2020, 1:11 PM