mbonnin
03/14/2021, 8:30 PM@Composables
now? I tried using runCatching
and I got a weird error where the result was interpreted as a T
(and not a Result<T>
, see screenshot the debugger sees two types for the same lvalue ?!?). I ended up using try/catch and now it's all working but searching the backlog of this channel (https://kotlinlang.slack.com/archives/CJLTWPH7S/p1603737209131700), it looks like this might be dangerous?jim
03/14/2021, 8:36 PMmbonnin
03/14/2021, 8:36 PMrunCatching
would behave differently as try/catch
?jim
03/14/2021, 8:38 PMrunCatching
catches exceptions.mbonnin
03/14/2021, 8:38 PMmbonnin
03/14/2021, 8:38 PMResult<T>
?mbonnin
03/14/2021, 8:40 PMjim
03/14/2021, 8:41 PMmbonnin
03/14/2021, 8:42 PMjim
03/14/2021, 8:46 PMmbonnin
03/14/2021, 9:03 PMjim
03/14/2021, 9:45 PM