dave08
02/20/2023, 4:19 PMCaused by: java.lang.IllegalArgumentException: No argument for parameter VALUE_PARAMETER CONTINUATION_CLASS name:$completion index:3 type:kotlin.coroutines.Continuation<kotlin.collections.List<
...simon.vergauwen
02/20/2023, 4:20 PMalpha.28
.dave08
02/20/2023, 4:21 PMcontext(Raise...)
on it.= coroutineScope {...
in it's definition...)Stylianos Gakis
02/20/2023, 4:23 PMdave08
02/20/2023, 4:24 PMcontext<Raise<...>>
and replaced it with an either { } block, and then it compiled...simon.vergauwen
02/20/2023, 5:33 PMReplaced it with an either { } block, and then it compiled...Yes, that's definitely a bug in the compiler related to context receivers.
dave08
02/20/2023, 6:21 PMsimon.vergauwen
02/20/2023, 6:21 PMdave08
02/20/2023, 6:23 PMsimon.vergauwen
02/20/2023, 6:24 PMEither
and Raise<E>
in some places to refrain from using them.
They seamlessly interop, and you can whatever you want wherever. So when I was working with Resource<Either<E, A>>
then I used suspend fun ResourceScope.example(): Either<E, A>
and otherwise I used Raise<E>
.