gsala
05/20/2021, 8:22 AMResult
is wrapping a failure, the isSuccess
checks return true
. The behavior matches the debugger output there. What could be going on?wasyl
05/20/2021, 8:26 AMresult
should not be another Result
instance I think, so your result is Result.Success(Result.Failure)
?wasyl
05/20/2021, 8:27 AMgsala
05/20/2021, 8:30 AMResult
I have is the outcome of a runCatching {}
but it actually seems like isSuccess() = false
at first, then isSuccess() = true
when I send/receive it through a channel 🤔gsala
05/20/2021, 8:42 AMResult 1 is false
Result 2 is false
as expected. But in my case, Result 2 is true. It must be something on my end then