-
Notifications
You must be signed in to change notification settings - Fork 1.9k
FlowCollector fun interface errors due to collect being InternalCoroutinesApi #3078
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
* It also saves us from the copy-without-imports problem Addresses #3037
#3082 removes it from some implementation classes, but I don't see how that resolves this since those implementation classes are usually opaque to users. Most code is solely collecting from a |
Scratch that, I see it's merged into |
Seems odd that this did not get caught by automated testing or even just building the tests, pre-release. Maybe add or change something to capture this kind of scenario? |
I think the tests run with opt-in for the |
* Get rid of @InternalCoroutinesApi from Flow.collect member Fixes Kotlin#3078
* Get rid of @InternalCoroutinesApi from Flow.collect member Fixes Kotlin#3078
As per the title the change in 1.6 RC2 breaks code that are copy pasted from Compose for example:
Will produce
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
The text was updated successfully, but these errors were encountered: