-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ReceiveChannel.broadcast shall start lazy coroutine when closed #1717
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qwwdfsad
requested changes
Dec 25, 2019
elizarov
force-pushed
the
broadcast-close
branch
from
December 25, 2019 15:07
f41bd3e
to
4a1835e
Compare
elizarov
changed the title
ReceiveChannel.broadcast shall properly consume source channel when closed
ReceiveChannel.broadcast shall start lazy coroutine when closed
Dec 25, 2019
elizarov
force-pushed
the
broadcast-close
branch
from
December 25, 2019 15:15
4a1835e
to
cdaa135
Compare
I've totally reworked and force-pushed this update.
|
elizarov
force-pushed
the
broadcast-close
branch
from
December 26, 2019 08:07
cdaa135
to
5782e62
Compare
qwwdfsad
requested changes
Feb 14, 2020
elizarov
force-pushed
the
broadcast-close
branch
from
February 17, 2020 11:36
5782e62
to
a7b25dd
Compare
qwwdfsad
force-pushed
the
develop
branch
3 times, most recently
from
March 10, 2020 17:27
4a49830
to
aff8202
Compare
qwwdfsad
requested changes
Mar 16, 2020
* Documentation on broadcast operators is added that explains that the resulting BroadcastChannel shall be cancelled if it is not needed anymore. * More tests added for various broadcast cancel/close cases. * The only functional change is that closing a broadcast channel for lazy coroutine shall start the corresponding coroutine to give it a chance to promptly fail. * Mark broadcast operators as obsolete. To be replaced with sharing operators on flows (see #1716). Fixes #1713
There is no replacement and it would just makes life harder for people.
elizarov
force-pushed
the
broadcast-close
branch
from
March 16, 2020 11:22
a7b25dd
to
59b4067
Compare
qwwdfsad
approved these changes
Mar 16, 2020
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.
👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1713