Skip to content
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

Add lint warnings on SharedFlow operations that never complete #2376

Merged
merged 2 commits into from Nov 17, 2020

Conversation

elizarov
Copy link
Contributor

@elizarov elizarov commented Nov 9, 2020

Fixes #2340
Fixes #2368

message = "SharedFlow never completes, so this terminal operation never completes.",
level = DeprecationLevel.WARNING,
replaceWith = ReplaceWith("awaitCancellation()")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awaitCancellation seems to be unintended

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really cannot figure out a better replacement. We can leave it without a replacement, though.

Copy link
Member

@qwwdfsad qwwdfsad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice precaution with InlineOnly.
Could drop a comment // Error in 1.5.0 so we won't forget to do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants