bolot
10/24/2018, 9:36 PMkotlin.Result cannot be cast to MyType
? I'm trying to use Result
with LiveData, doing something like this: liveData.value = runCatching { useCase().await() }
, which is then used in liveData.observe
as result.onSuccess { } .onFailure { }
(Kotlin version 1.3.0-rc-190)gildor
10/24/2018, 11:15 PMgildor
10/24/2018, 11:15 PMgildor
10/24/2018, 11:16 PMbolot
10/24/2018, 11:21 PMbolot
10/24/2018, 11:33 PMamatkivskiy
11/25/2018, 10:02 AM