yasyd
11/18/2015, 8:48 AMkittinunf
11/18/2015, 8:56 AMyasyd
11/18/2015, 8:59 AMapatrida
11/18/2015, 12:37 PMflatMap
for odd uses, everyone copies to be consistent, but the name really isn’t that intuitive for most of its use cases. anyway, do what you wish, just adding suggestions, and like you said that if people use Kovenant we might not use Result since we can do sync or already resolved promises there and keep the API.kittinunf
11/21/2015, 7:49 AMyasyd
11/21/2015, 5:29 PMkittinunf
11/23/2015, 10:42 AMyasyd
11/23/2015, 11:53 AMkittinunf
11/30/2015, 6:11 PMor
interface to chain Result
with fallback value. Introduce ResultType
as interface so client could implement custom type of Result
.kittinunf
12/16/2015, 12:24 PMapatrida
12/28/2015, 6:15 PMapatrida
12/28/2015, 6:38 PMkittinunf
12/29/2015, 3:55 AMkittinunf
12/29/2015, 3:56 AMapatrida
12/29/2015, 4:14 AMkittinunf
12/29/2015, 4:17 AMapatrida
12/29/2015, 4:20 AMapatrida
12/29/2015, 4:20 AMkittinunf
01/24/2016, 5:33 AMkittinunf
02/16/2016, 4:38 PMyasyd
07/21/2016, 5:58 AMmesquka
04/26/2017, 2:24 PMDamien
08/03/2021, 11:51 PMResult
has been been opened up more widely somewhat recently. Yay! Are those who'd worked on it still paying attention here?
I was wondering why constrain the error type to be Throwable
instead of another generic parameter. Why Result<T>
instead of Result<T,E>
?aidanvii
08/19/2021, 1:58 PMResult
as a return type as of Kotlin 1.5. I’m having seemingly random crashes with suspending functions that return Result
(I haven’t checked with other inline/value classes). it’s happening in the generated invokeSuspend
:
Fatal Exception: java.lang.ClassCastException
java.util.ArrayList cannot be cast to kotlin.Result
kittinunf
08/29/2021, 12:00 PMkotlin.Result
and our Result has name clashes, unfortunately. The fact that the error that you pasted is pointing to kotlin.Result
kinda give a tell. Is it possible that you didn’t use our Result?
Could you check first whether you are using the “correct” Result class?Robert Jaros
12/06/2022, 11:54 AMkittinunf
12/19/2022, 12:51 PMJBordage
01/05/2023, 9:56 PMkotlin.Result
but rather for a result library with the same name xDkittinunf
01/09/2023, 7:42 AMaidanvii
02/27/2023, 1:25 PMClassCastException
returning kotlin.Result
from suspending functions, but I can’t accurately figure out the steps to reproduce. it’s always kotlin.Result cannot be cast to (TheWrappedType)
. Has anyone else seen this or figured out why it happens and how to avoid it? I’m at the stage where I’m considering ditching this API as it’s extremely flakey because of this 😕