Has anybody run into an issue `kotlin.Result canno...
# coroutines
b
Has anybody run into an issue
kotlin.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)
g
There are still some known issues with Result
b
Thank you!
Exactly the same issue. I'll use my own, non-inline Result class for now. Thanks again!
a
Seems that this is more related to inline classes issue rather then to specific Result class.
💯 1