yasyd
11/13/2015, 8:10 AMyasyd
11/13/2015, 8:10 AMkittinunf
11/13/2015, 8:10 AMkittinunf
11/13/2015, 8:10 AMkittinunf
11/13/2015, 8:11 AMyasyd
11/13/2015, 8:11 AMyasyd
11/13/2015, 8:12 AMyasyd
11/13/2015, 8:12 AMkittinunf
11/13/2015, 8:13 AMkittinunf
11/13/2015, 8:14 AMkittinunf
11/13/2015, 8:14 AMapatrida
11/16/2015, 6:01 PMPromise<V, Exception>
but a small difference in flatMap vs. unwrap, … and having errors go through the chain to pop out in failure or always lambda. Your chained version doesn’t show the error handling btw, would be good if you translated that into the functional version. Why not sync up with @mplatvoet of Kovenant fame so that Results and Promises could have unified API’s where equivalent?yasyd
11/16/2015, 9:15 PMyasyd
11/16/2015, 9:15 PMapatrida
11/16/2015, 9:53 PMkittinunf
11/17/2015, 3:32 AMkittinunf
11/17/2015, 3:38 AMflatMap
is a little clearer than bind
. Because it goes similar to the way that Iterable<T>.flatMap
works ...yasyd
11/17/2015, 6:31 AMyasyd
11/17/2015, 6:32 AMyasyd
11/17/2015, 6:32 AMyasyd
11/17/2015, 6:32 AMyasyd
11/17/2015, 6:33 AMkittinunf
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 😕