With RC2 flow.collect { value = it } no more works
# coroutines
t
With RC2 flow.collect { value = it } no more works
Gives
This is an internal kotlinx.coroutines API that should not be used from outside of kotlinx.coroutines. No compatibility guarantees are provided. It is recommended to report your use-case of internal API to kotlinx.coroutines issue tracker, so stable API could be provided instead
That code is a copy of compose
Copy code
collectAsState
n
Are you sure you didn't just lose the extension method import?
t
They are removed and it's now a fun interface. But on an internalapi collect hence the error. Reported on GitHub.
m
Yup, same issue
a
c
I think the problem is that the extension function collides with the import for Flow. E.g. My implementation of a Flow extension method imports
Copy code
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.Flow
And so then it gets confused as to whether I am implementing the Flow interface collect method or the extension function collect method.