itnoles
04/13/2023, 2:51 AM@NativeCoroutines
fun fetchAllLaunches() = flow { }
for com.rickclephas.kmp.nativecoroutines 1.0.0 Alpha 6. Is that a proper way to do it?Rick Clephas
04/13/2023, 4:48 AMitnoles
04/13/2023, 2:44 PMRick Clephas
04/13/2023, 2:49 PMRick Clephas
04/14/2023, 7:18 PMfetchAllLaunches
to be unresolvable.
I am unsure why KSP can’t resolve the return type since it is actually resolved in the end. Anyway explicitly specifying the return type allows KSP to correctly resolve the type:
@NativeCoroutines
fun fetchAllLaunches(): Flow<List<Launch.Doc>?> = flow { }
itnoles
04/15/2023, 2:06 AM