-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Implement receiveOrClosed #762
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
Conversation
…ng extensions with the same semantic and generic ': Any' bound. Rename ReceiveResult to ValueOrClosed for consistency.
79975c5
to
27615aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we have to wait until https://youtrack.jetbrains.com/issue/KT-27524 is resolved before we can merge this feature. Otherwise, when this Kotlin compiler issue is resolved, it is going to introduce an ugly binary-incompatible change to the ReceiveChannel.receiveOrClosed
interface function which is Ok for an experimental inline classes feature, but that will be very hard to manage from the standpoint of a stable kotlinx.coroutines
library.
bc68d63
to
3179683
Compare
1837412
to
1748ce1
Compare
An awesome piece of work! I've successfully cherry-picked all three commits to PR #1343 (
Let's keep it open for future stabilization of |
4a49830
to
aff8202
Compare
It seems that with #330 we can finally close this PR for good. |
Fixes #330