-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Source-incompatibility during #3047: "Make FlowCollector fun interface, remove redundant extensions" #3107
Labels
Comments
qwwdfsad
added a commit
that referenced
this issue
Dec 22, 2021
qwwdfsad
added a commit
that referenced
this issue
Dec 22, 2021
qwwdfsad
added a commit
that referenced
this issue
Dec 22, 2021
This change broke our small helper function for Android:
After changing |
FWIW, doesn't this also break the following: flow
.onEach { … }
.collect() |
pablobaxter
pushed a commit
to pablobaxter/kotlinx.coroutines
that referenced
this issue
Sep 14, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In #3047, the
Flow.collect(action)
extension was removed in the favour of the freshly-added SAM conversion.The extension was
inline
, so the change is binary compatible and previously compiled clients continue working without any issues, but such change breaks a pattern with using functional type as a non-inline argument.The following code no longer compiles:
with the following workaround:
This incompatibility was discovered after the stable release 1.6.0. Our integration and user-project testing along with RC releases haven't revealed the issue, so the scope of the impact stays unclear.
We're aiming to fix it in the following patch release, feel free to comment on the issue if the impact prevents you from upgrading in order for us to be aware of the urgency of the fix
The text was updated successfully, but these errors were encountered: