I have been trying to use ```@NativeCoroutines ...
# multiplatform
i
I have been trying to use
Copy code
@NativeCoroutines
    fun fetchAllLaunches() = flow { }
for com.rickclephas.kmp.nativecoroutines 1.0.0 Alpha 6. Is that a proper way to do it?
r
Hi! Yeah that's the proper way.
i
Oh good, I am wondering why your ksp processors couldn't process it.
r
Ah oke. Do you have any more details about the code/project setup?
r
Thanks for sharing the project! I did some testing and it turns out that KSP considers the return type of
fetchAllLaunches
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:
Copy code
@NativeCoroutines
fun fetchAllLaunches():  Flow<List<Launch.Doc>?> = flow { }
i
Thanks for checking for it. I was not expecting that to happen. You could make an error message to explain why.