ElliotSknr
12/12/2023, 12:34 PMvar refreshSomeDataClass: suspend () -> SomeDataClass? = {
null
}
Instead it is mapped to a 'any KotlinSuspendFunction0' which I can't simply assign to
The error reads: "Cannot assign value of type '() async -> any KotlinSuspendFunction0' to type 'any KotlinSuspendFunction0'"
Does anyone know how this can be achieved?Andreas Dybdahl
12/12/2023, 12:43 PMElliotSknr
12/12/2023, 1:01 PMAndreas Dybdahl
12/13/2023, 6:23 AM